Skip to content

Commit

Permalink
phpcs for report-performance-indicators.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rrennick committed Feb 14, 2019
1 parent 9235f4e commit ccfb6cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/api/reports-performance-indicators.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ public function test_get_indicators() {

WC_Helper_Queue::run_all_pending();

$time = time();
$time = time();
$request = new WP_REST_Request( 'GET', $this->endpoint );
$request->set_query_params(
array(
'before' => date( 'Y-m-d 23:59:59', $time ),
'after' => date( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
'stats' => 'orders/orders_count,downloads/download_count,test/bogus_stat',
'before' => date( 'Y-m-d 23:59:59', $time ),
'after' => date( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
'stats' => 'orders/orders_count,downloads/download_count,test/bogus_stat',
)
);
$response = $this->server->dispatch( $request );
Expand Down Expand Up @@ -126,8 +126,8 @@ public function test_get_indicators_empty_request() {
$request = new WP_REST_Request( 'GET', $this->endpoint );
$request->set_query_params(
array(
'before' => date( 'Y-m-d 23:59:59', $time ),
'after' => date( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
'before' => date( 'Y-m-d 23:59:59', $time ),
'after' => date( 'Y-m-d H:00:00', $time - ( 7 * DAY_IN_SECONDS ) ),
)
);
$response = $this->server->dispatch( $request );
Expand Down

0 comments on commit ccfb6cb

Please sign in to comment.