phpcs for reports-customers.php
This commit is contained in:
parent
cd1fdef99d
commit
e91f7f6d00
|
@ -136,7 +136,7 @@ class WC_Tests_API_Reports_Customers extends WC_REST_Unit_Test_Case {
|
||||||
|
|
||||||
WC_Helper_Queue::run_all_pending();
|
WC_Helper_Queue::run_all_pending();
|
||||||
|
|
||||||
$request = new WP_REST_Request( 'GET', $this->endpoint );
|
$request = new WP_REST_Request( 'GET', $this->endpoint );
|
||||||
$request->set_query_params(
|
$request->set_query_params(
|
||||||
array(
|
array(
|
||||||
'per_page' => 5,
|
'per_page' => 5,
|
||||||
|
@ -175,8 +175,8 @@ class WC_Tests_API_Reports_Customers extends WC_REST_Unit_Test_Case {
|
||||||
// Test name and last_order parameters.
|
// Test name and last_order parameters.
|
||||||
$request->set_query_params(
|
$request->set_query_params(
|
||||||
array(
|
array(
|
||||||
'search' => 'Justin',
|
'search' => 'Justin',
|
||||||
'last_order_after' => date( 'Y-m-d' ) . 'T00:00:00Z',
|
'last_order_after' => date( 'Y-m-d' ) . 'T00:00:00Z',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$response = $this->server->dispatch( $request );
|
$response = $this->server->dispatch( $request );
|
||||||
|
|
Loading…
Reference in New Issue