Fixed formatting

This commit is contained in:
kidinov 2023-06-22 10:55:53 +02:00
parent 0d5bc86da2
commit fc6c01736a
1 changed files with 5 additions and 5 deletions

View File

@ -390,7 +390,7 @@ class WC_Admin_Tests_API_Reports_Customers extends WC_REST_Unit_Test_Case {
// Test filter_empty with new customer. // Test filter_empty with new customer.
$customer = WC_Helper_Customer::create_customer( 'customer_11', 'password', 'customer@example.com' ); $customer = WC_Helper_Customer::create_customer( 'customer_11', 'password', 'customer@example.com' );
$customer->set_postcode( null ); $customer->set_postcode( null );
$customer->set_first_name( "customer_andrei" ); $customer->set_first_name( 'customer_andrei' );
$customer->save(); $customer->save();
WC_Helper_Queue::run_all_pending(); 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(); $reports = $response->get_data();
$this->assertCount( 10, $reports ); $this->assertCount( 10, $reports );
// Test filter_empty param by email. // Test filter_empty param by state.
$request->set_query_params( $request->set_query_params(
array( array(
'filter_empty' => array( 'email' ), 'filter_empty' => array( 'state' ),
) )
); );
$response = $this->server->dispatch( $request ); $response = $this->server->dispatch( $request );
$reports = $response->get_data(); $reports = $response->get_data();
$this->assertCount( 11, $reports ); $this->assertCount( 11, $reports );
// Test filter_empty param by state. // Test filter_empty param by email.
$request->set_query_params( $request->set_query_params(
array( array(
'filter_empty' => array( 'state' ), 'filter_empty' => array( 'email' ),
) )
); );
$response = $this->server->dispatch( $request ); $response = $this->server->dispatch( $request );