| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | function it_provides_active_promotions( |
||
| 38 | PromotionRepositoryInterface $promotionRepository, |
||
| 39 | PromotionInterface $promotion1, |
||
| 40 | PromotionInterface $promotion2, |
||
| 41 | PromotionSubjectInterface $subject |
||
| 42 | ): void { |
||
| 43 | $promotionRepository->findActive()->willReturn([$promotion1, $promotion2]); |
||
| 44 | |||
| 45 | $this->getPromotions($subject)->shouldReturn([$promotion1, $promotion2]); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |