fix tests
This commit is contained in:
parent
8a9782986d
commit
4069cc3470
|
@ -769,7 +769,7 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case {
|
|||
$data = $response->get_data();
|
||||
$properties = $data['schema']['properties'];
|
||||
|
||||
$this->assertEquals( 42, count( $properties ) );
|
||||
$this->assertEquals( 43, count( $properties ) );
|
||||
$this->assertArrayHasKey( 'id', $properties );
|
||||
}
|
||||
|
||||
|
|
|
@ -1139,7 +1139,7 @@ class WC_Tests_API_Orders extends WC_REST_Unit_Test_Case {
|
|||
$data = $response->get_data();
|
||||
$properties = $data['schema']['properties'];
|
||||
|
||||
$this->assertEquals( 42, count( $properties ) );
|
||||
$this->assertEquals( 43, count( $properties ) );
|
||||
$this->assertArrayHasKey( 'id', $properties );
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ class WC_REST_Order_V2_Controller_Test extends WC_REST_Unit_Test_case {
|
|||
'coupon_lines',
|
||||
'currency_symbol',
|
||||
'refunds',
|
||||
'payment_url',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ class WC_REST_Orders_Controller_Tests extends WC_REST_Unit_Test_Case {
|
|||
'coupon_lines',
|
||||
'currency_symbol',
|
||||
'refunds',
|
||||
'payment_url',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue