phpcs for class-wc-tests-reports-revenue-stats.php

This commit is contained in:
Ron Rennick 2019-02-14 16:34:38 -04:00
parent 610f179679
commit 16c5cf8c77
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
);
// Test retrieving the stats from the data store.
$this->assertEquals( $expected_stats, json_decode( json_encode( $data_store->get_data( $args ) ), true ) );
$this->assertEquals( $expected_stats, json_decode( wp_json_encode( $data_store->get_data( $args ) ), true ) );
// Test retrieving the stats through the query class.
$expected_stats = array(
@ -138,6 +138,6 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
'page_no' => 1,
);
$query = new WC_Admin_Reports_Revenue_Query( $args );
$this->assertEquals( $expected_stats, json_decode( json_encode( $query->get_data() ), true ) );
$this->assertEquals( $expected_stats, json_decode( wp_json_encode( $query->get_data() ), true ) );
}
}