Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Sep 23, 2024
1 parent 2bc39f6 commit f97ccd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit-tests/api/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f97ccd8

Please sign in to comment.