[TESTS] Fixed customer tests

This commit is contained in:
Claudio Sanches 2016-08-20 14:30:04 -03:00
parent 8fe4c14e78
commit a8c0216225
1 changed files with 7 additions and 7 deletions

View File

@ -61,7 +61,7 @@ class Customers extends WC_REST_Unit_Test_Case {
'first_name' => 'Justin',
'last_name' => '',
'username' => 'testcustomer',
'last_order' => array( 'id' => '', 'date' => '' ),
'last_order' => null,
'orders_count' => 0,
'total_spent' => '0.00',
'avatar_url' => $customer_1->get_avatar_url(),
@ -142,7 +142,7 @@ class Customers extends WC_REST_Unit_Test_Case {
'first_name' => '',
'last_name' => '',
'username' => 'create_customer_test',
'last_order' => array( 'id' => '', 'date' => '' ),
'last_order' => null,
'orders_count' => 0,
'total_spent' => '0',
'avatar_url' => $data['avatar_url'],
@ -155,7 +155,7 @@ class Customers extends WC_REST_Unit_Test_Case {
'city' => '',
'state' => '',
'postcode' => '',
'country' => 'GB',
'country' => '',
'email' => '',
'phone' => '',
),
@ -168,7 +168,7 @@ class Customers extends WC_REST_Unit_Test_Case {
'city' => '',
'state' => '',
'postcode' => '',
'country' => 'GB',
'country' => '',
),
), $data );
@ -201,9 +201,9 @@ class Customers extends WC_REST_Unit_Test_Case {
'first_name' => 'Test',
'last_name' => 'McTestFace',
'username' => 'create_customer_test2',
'last_order' => array( 'id' => '', 'date' => '' ),
'last_order' => null,
'orders_count' => 0,
'total_spent' => '0.00',
'total_spent' => '0',
'avatar_url' => $data['avatar_url'],
'billing' => array(
'first_name' => '',
@ -280,7 +280,7 @@ class Customers extends WC_REST_Unit_Test_Case {
'first_name' => 'Justin',
'last_name' => '',
'username' => 'get_customer_test',
'last_order' => array( 'id' => '', 'date' => '' ),
'last_order' => null,
'orders_count' => 0,
'total_spent' => '0.00',
'avatar_url' => $data['avatar_url'],