Skip to content

Commit

Permalink
FIx an invalid unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Oct 11, 2017
1 parent a2d75ce commit 1148fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit-tests/api/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function test_get_items_without_permission() {
public function test_get_item() {
wp_set_current_user( $this->user );
$order = WC_Helper_Order::create_order();
$order->add_meta_data( 'key', 'value' );
$order->add_meta_data( 'key2', 'value2' );
$order->save();
$this->orders[] = $order;
$response = $this->server->dispatch( new WP_REST_Request( 'GET', '/wc/v2/orders/' . $order->get_id() ) );
$data = $response->get_data();
Expand Down

0 comments on commit 1148fa3

Please sign in to comment.