1 | <?php |
||
11 | class OrderRepositoryTest extends PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | public function setUp() |
||
14 | { |
||
15 | RequestFactory::set(RequestMock::class); |
||
16 | } |
||
17 | |||
18 | public function testFindOrders() |
||
19 | { |
||
20 | $orders = OrderRepository::findOrders( |
||
21 | new ThreePlCentral('', '', '', '', ''), |
||
22 | new DateTime('2016-01-01 00:00:00'), |
||
23 | new DateTime('2016-01-31 00:00:00') |
||
24 | ); |
||
25 | |||
26 | $this->assertCount(2, $orders); |
||
27 | } |
||
28 | } |
||
29 |