Skip to content

Commit 0b88cf0

Browse files
committed
Add test for Customers::getByEmail
1 parent f2e096c commit 0b88cf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/BigCommerce/Api/Customers/CustomersApiTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ public function testCanGetCustomers()
1717

1818
public function testCanGetCustomerByEmail()
1919
{
20-
$this->markTestIncomplete();
20+
$this->setReturnData('customers__get_all.json');
21+
$customer = $this->getApi()->customers()->getByEmail('[email protected]');
22+
23+
$this->assertEquals('Jan', $customer->first_name);
2124
}
2225

2326
public function testCanGetCustomerById()

0 commit comments

Comments
 (0)