commit
96b5c1fd53
|
@ -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' );
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue