diff --git a/tests/unit-tests/api/orders.php b/tests/unit-tests/api/orders.php index d01b98d1..c068a4eb 100644 --- a/tests/unit-tests/api/orders.php +++ b/tests/unit-tests/api/orders.php @@ -27,6 +27,10 @@ public function setUp() : void { public function test_get_order() { wp_set_current_user( $this->user ); + add_action( 'doing_it_wrong_run', function() { + debug_print_backtrace(); + } ); + $order = WC_GZD_Helper_Order::create_order(); $response = $this->server->dispatch( new WP_REST_Request( 'GET', '/wc/v3/orders/' . $order->get_id() ) ); $order = $response->get_data();