Fixed unit tests
This commit is contained in:
parent
3e0e9fee77
commit
5a509591e7
|
@ -464,7 +464,7 @@ class WC_Tests_API_Orders_V2 extends WC_REST_Unit_Test_Case {
|
|||
$response = $this->server->dispatch( $request );
|
||||
$data = $response->get_data();
|
||||
$expected = array(
|
||||
'id' => 1,
|
||||
'id' => $item->get_id(),
|
||||
'name' => 'Dummy Product',
|
||||
'product_id' => 0,
|
||||
'variation_id' => 0,
|
||||
|
|
|
@ -468,7 +468,7 @@ class WC_Tests_API_Orders extends WC_REST_Unit_Test_Case {
|
|||
$response = $this->server->dispatch( $request );
|
||||
$data = $response->get_data();
|
||||
$expected = array(
|
||||
'id' => 1,
|
||||
'id' => $item->get_id(),
|
||||
'name' => 'Dummy Product',
|
||||
'product_id' => 0,
|
||||
'variation_id' => 0,
|
||||
|
|
Loading…
Reference in New Issue