From 16c5cf8c776f4d9be63659bfcc9dda76f71445ac Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Thu, 14 Feb 2019 16:34:38 -0400 Subject: [PATCH] phpcs for class-wc-tests-reports-revenue-stats.php --- .../tests/reports/class-wc-tests-reports-revenue-stats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce-admin/tests/reports/class-wc-tests-reports-revenue-stats.php b/plugins/woocommerce-admin/tests/reports/class-wc-tests-reports-revenue-stats.php index a830010ab97..3c465ab7ab0 100644 --- a/plugins/woocommerce-admin/tests/reports/class-wc-tests-reports-revenue-stats.php +++ b/plugins/woocommerce-admin/tests/reports/class-wc-tests-reports-revenue-stats.php @@ -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 ) ); } }