Пример #1
0
 function it_removes_a_promotion(PromotionRepositoryInterface $promotionRepository, SharedStorageInterface $sharedStorage, PromotionInterface $promotion)
 {
     $sharedStorage->set('promotion', $promotion)->shouldBeCalled();
     $promotionRepository->remove($promotion)->shouldBeCalled();
     $this->iDeletePromotion($promotion);
 }
Пример #2
0
 function it_removes_a_promotion(PromotionRepositoryInterface $promotionRepository, SharedStorageInterface $sharedStorage, PromotionInterface $promotion)
 {
     $promotion->getId()->willReturn(5);
     $sharedStorage->set('promotion_id', 5)->shouldBeCalled();
     $promotionRepository->remove($promotion)->shouldBeCalled();
     $this->iDeletePromotion($promotion);
 }