Completed
Push — master ( ae8ba7...4158c4 )
by Gabriel
09:07 queued 06:39
created

OrderRepositoryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 2
c 2
b 0
f 2
lcom 0
cbo 4
dl 0
loc 18
rs 10
1
<?php
2
3
namespace ThreePlCentral\Test;
4
5
use PHPUnit_Framework_TestCase;
6
use ThreePlCentral\Order\OrderRepository;
7
use ThreePlCentral\RequestFactory;
8
use ThreePlCentral\ThreePlCentral;
9
use DateTime;
10
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