diff --git a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php index 6a4edd2dc80..700aa901136 100644 --- a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php +++ b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php @@ -390,7 +390,7 @@ class WC_Admin_Tests_API_Reports_Customers extends WC_REST_Unit_Test_Case { // Test filter_empty with new customer. $customer = WC_Helper_Customer::create_customer( 'customer_11', 'password', 'customer@example.com' ); $customer->set_postcode( null ); - $customer->set_first_name( "customer_andrei" ); + $customer->set_first_name( 'customer_andrei' ); $customer->save(); WC_Helper_Queue::run_all_pending(); @@ -415,20 +415,20 @@ class WC_Admin_Tests_API_Reports_Customers extends WC_REST_Unit_Test_Case { $reports = $response->get_data(); $this->assertCount( 10, $reports ); - // Test filter_empty param by email. + // Test filter_empty param by state. $request->set_query_params( array( - 'filter_empty' => array( 'email' ), + 'filter_empty' => array( 'state' ), ) ); $response = $this->server->dispatch( $request ); $reports = $response->get_data(); $this->assertCount( 11, $reports ); - // Test filter_empty param by state. + // Test filter_empty param by email. $request->set_query_params( array( - 'filter_empty' => array( 'state' ), + 'filter_empty' => array( 'email' ), ) ); $response = $this->server->dispatch( $request );