Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
21 | class SaleTest extends PlanTest |
||
22 | { |
||
23 | /** |
||
24 | * @var Sale|SaleInterface |
||
25 | */ |
||
26 | protected $sale; |
||
27 | /** |
||
28 | * @var SaleRepositoryInterface|SimpleSaleRepository |
||
29 | */ |
||
30 | protected $repository; |
||
31 | |||
32 | protected function setUp(): void |
||
33 | { |
||
34 | parent::setUp(); |
||
35 | $this->time = new DateTimeImmutable('now'); |
||
36 | $this->sale = new Sale(null, $this->plan->verisign, $this->plan->customer, $this->plan, $this->time->sub(new DateInterval('PT1M'))); |
||
37 | $this->repository = new SimpleSaleRepository($this->sale); |
||
38 | } |
||
40 |