mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 06:36:06 +03:00
19 lines
567 B
PHP
19 lines
567 B
PHP
|
<?php
|
||
|
|
||
|
require_once __DIR__ . '/../' . getenv('TEST_SUITE') . '/TestCase.php';
|
||
|
|
||
|
class RetailcrmTest extends TestCase {
|
||
|
public function testGetOrderManager() {
|
||
|
$retailcrm = new retailcrm\Retailcrm(static::$registry);
|
||
|
|
||
|
$proxy = $this->getMockBuilder(\RetailcrmProxy::class)
|
||
|
->disableOriginalConstructor()
|
||
|
->getMock();
|
||
|
|
||
|
static::$registry->set(\RetailcrmProxy::class, $proxy);
|
||
|
$manager = $retailcrm->getOrderManager();
|
||
|
|
||
|
$this->assertInstanceOf(\retailcrm\service\OrderManager::class, $manager);
|
||
|
}
|
||
|
}
|