mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 21:26:08 +03:00
18 lines
516 B
PHP
18 lines
516 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../' . getenv('TEST_SUITE') . '/TestCase.php';
|
|
|
|
class CustomerRespositoryAdminTest extends TestCase {
|
|
const CUSTOMER_ID = 1;
|
|
const ADDRESS_ID = 1;
|
|
|
|
public function testGetCustomer() {
|
|
$repository = new \retailcrm\repository\CustomerRepository(static::$registry);
|
|
|
|
$customer = $repository->getCustomer(static::CUSTOMER_ID);
|
|
|
|
$this->assertNotEmpty($customer);
|
|
$this->assertEquals(static::CUSTOMER_ID, $customer['customer_id']);
|
|
}
|
|
}
|