Merge pull request #16775 from mitraval192/secure-link

add Secure link
This commit is contained in:
Claudio Sanches 2017-09-13 15:02:08 -03:00 committed by GitHub
commit 96b5c1fd53
2 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ class Products_API extends WC_REST_Unit_Test_Case {
'sku' => 'DUMMY SKU EXTERNAL API',
'regular_price' => '10',
'button_text' => 'Test Button',
'external_url' => 'http://wordpress.org',
'external_url' => 'https://wordpress.org',
) );
$response = $this->server->dispatch( $request );
$data = $response->get_data();
@ -312,7 +312,7 @@ class Products_API extends WC_REST_Unit_Test_Case {
$this->assertEquals( 'Test External Product', $data['name'] );
$this->assertEquals( 'external', $data['type'] );
$this->assertEquals( 'Test Button', $data['button_text'] );
$this->assertEquals( 'http://wordpress.org', $data['external_url'] );
$this->assertEquals( 'https://wordpress.org', $data['external_url'] );
// Create variable
$request = new WP_REST_Request( 'POST', '/wc/v2/products' );

View File

@ -129,7 +129,7 @@ class WC_Tests_Product_Data extends WC_Unit_Test_Case {
$time = time();
$getters_and_setters = array(
'button_text' => 'Test Button Text',
'product_url' => 'http://wordpress.org',
'product_url' => 'https://wordpress.org',
);
$product = new WC_Product_External;
foreach ( $getters_and_setters as $function => $value ) {