From 7a41da3058baf2a791f2906618e79e99c66e696f Mon Sep 17 00:00:00 2001 From: Joshua Flowers Date: Fri, 12 Apr 2019 14:30:48 +0800 Subject: [PATCH] Bust cache for orders query in import tests --- plugins/woocommerce-admin/tests/api/reports-import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/tests/api/reports-import.php b/plugins/woocommerce-admin/tests/api/reports-import.php index 58d23843726..02233fe3aea 100644 --- a/plugins/woocommerce-admin/tests/api/reports-import.php +++ b/plugins/woocommerce-admin/tests/api/reports-import.php @@ -141,7 +141,8 @@ class WC_Tests_API_Reports_Import extends WC_REST_Unit_Test_Case { WC_Helper_Queue::run_all_pending(); WC_Helper_Queue::run_all_pending(); - $request = new WP_REST_Request( 'GET', '/wc/v4/reports/orders' ); + $request = new WP_REST_Request( 'GET', '/wc/v4/reports/orders' ); + $request->set_query_params( array( 'per_page' => 5 ) ); $response = $this->server->dispatch( $request ); $reports = $response->get_data();