コード例 #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
ファイル: PromotionContextSpec.php プロジェクト: Mozan/Sylius
 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);
 }