| 1 | <?php |
||
| 26 | class CouponContextSpec extends ObjectBehavior |
||
| 27 | { |
||
| 28 | function let(RepositoryInterface $couponRepository) |
||
| 32 | |||
| 33 | function it_is_initializable() |
||
| 37 | |||
| 38 | function it_implements_context_interface() |
||
| 42 | |||
| 43 | function it_gets_coupon_by_its_code(RepositoryInterface $couponRepository, CouponInterface $coupon) |
||
| 50 | |||
| 51 | function it_throws_exception_when_coupon_with_given_code_was_not_found(RepositoryInterface $couponRepository) |
||
| 57 | } |
||
| 58 |