Skip to content

Commit

Permalink
Use John Smith for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jswift committed Jan 11, 2021
1 parent 0b88cf0 commit 12f9293
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tests/BigCommerce/Api/Customers/CustomersApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ public function testCanGetCustomers()
$this->setReturnData('customers__get_all.json');
$customersResponse = $this->getApi()->customers()->getAll();
$this->assertEquals(1, $customersResponse->getPagination()->total);
$this->assertEquals('Jan', $customersResponse->getCustomers()[0]->first_name);
$this->assertEquals('John', $customersResponse->getCustomers()[0]->first_name);
}

public function testCanGetCustomerByEmail()
{
$this->setReturnData('customers__get_all.json');
$customer = $this->getApi()->customers()->getByEmail('jan.plank@aligent.com.au');
$customer = $this->getApi()->customers()->getByEmail('john.smith@spam.me');

$this->assertEquals('Jan', $customer->first_name);
$this->assertEquals('John', $customer->first_name);
}

public function testCanGetCustomerById()
{
$this->setReturnData('customers__get_all.json');
$customer = $this->getApi()->customers()->getById(1);

$this->assertEquals('jan.plank@aligent.com.au', $customer->email);
$this->assertEquals('john.smith@spam.me', $customer->email);
}

public function testCanGetNullCustomerById()
Expand Down
6 changes: 3 additions & 3 deletions tests/BigCommerce/responses/customers__get_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
},
"company": "Aligent",
"customer_group_id": 1,
"email": "jan.plank@aligent.com.au",
"first_name": "Jan",
"last_name": "Plank",
"email": "john.smith@spam.me",
"first_name": "John",
"last_name": "Smith",
"notes": "",
"phone": "",
"registration_ip_address": "",
Expand Down

0 comments on commit 12f9293

Please sign in to comment.