Completed
Push — master ( 65e840...33fe4c )
by Gabriel
03:16
created

OrderRepositoryTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 16
rs 10
c 1
b 0
f 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testFindOrders() 0 8 1
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
        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
}
27