mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 06:36:06 +03:00
23 lines
732 B
PHP
23 lines
732 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../../../' . getenv('TEST_SUITE') . '/TestCase.php';
|
|
|
|
class OrderRepositoryAdminTest extends TestCase {
|
|
public function testGetOrder() {
|
|
$repository = new \retailcrm\repository\OrderRepository(static::$registry);
|
|
|
|
$order = $repository->getOrder(OrderManagerTest::ORDER_WITH_CUST_ID);
|
|
|
|
$this->assertNotEmpty($order);
|
|
$this->assertEquals(OrderManagerTest::ORDER_WITH_CUST_ID, $order['order_id']);
|
|
}
|
|
|
|
public function testGetOrderTotals() {
|
|
$repository = new \retailcrm\repository\OrderRepository(static::$registry);
|
|
|
|
$totals = $repository->getOrderTotals(OrderManagerTest::ORDER_WITH_CUST_ID);
|
|
|
|
$this->assertNotEmpty($totals);
|
|
}
|
|
}
|