Bust cache for orders query in import tests

This commit is contained in:
Joshua Flowers 2019-04-12 14:30:48 +08:00
parent fcf0994276
commit 7a41da3058
1 changed files with 2 additions and 1 deletions

View File

@ -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();