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();
|
$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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue