fix tests

This commit is contained in:
Josh Betz 2022-02-09 13:47:50 -06:00
parent 8a9782986d
commit 4069cc3470
4 changed files with 4 additions and 2 deletions

View File

@ -769,7 +769,7 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case {
$data = $response->get_data(); $data = $response->get_data();
$properties = $data['schema']['properties']; $properties = $data['schema']['properties'];
$this->assertEquals( 42, count( $properties ) ); $this->assertEquals( 43, count( $properties ) );
$this->assertArrayHasKey( 'id', $properties ); $this->assertArrayHasKey( 'id', $properties );
} }

View File

@ -1139,7 +1139,7 @@ class WC_Tests_API_Orders extends WC_REST_Unit_Test_Case {
$data = $response->get_data(); $data = $response->get_data();
$properties = $data['schema']['properties']; $properties = $data['schema']['properties'];
$this->assertEquals( 42, count( $properties ) ); $this->assertEquals( 43, count( $properties ) );
$this->assertArrayHasKey( 'id', $properties ); $this->assertArrayHasKey( 'id', $properties );
} }

View File

@ -66,6 +66,7 @@ class WC_REST_Order_V2_Controller_Test extends WC_REST_Unit_Test_case {
'coupon_lines', 'coupon_lines',
'currency_symbol', 'currency_symbol',
'refunds', 'refunds',
'payment_url',
); );
} }

View File

@ -66,6 +66,7 @@ class WC_REST_Orders_Controller_Tests extends WC_REST_Unit_Test_Case {
'coupon_lines', 'coupon_lines',
'currency_symbol', 'currency_symbol',
'refunds', 'refunds',
'payment_url',
); );
} }