function it_throws_an_exception_if_the_promotion_subject_is_not_an_order(PromotionSubjectInterface $subject)
 {
     $this->shouldThrow(new UnexpectedTypeException($subject->getWrappedObject(), OrderInterface::class))->during('isEligible', [$subject, []]);
 }
Ejemplo n.º 2
0
 function it_throws_an_exception_if_promotion_subject_is_not_order(Collection $taxonsCollection, PromotionSubjectInterface $subject)
 {
     $this->shouldThrow(new UnsupportedTypeException($subject->getWrappedObject(), OrderInterface::class))->during('isEligible', [$subject, ['taxons' => $taxonsCollection]]);
 }