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