function it_decrements_promotion_usage_if_promotion_was_used(OrderInterface $order, PromotionInterface $promotion) { $order->getPromotions()->willReturn([$promotion]); $promotion->getUsed()->willReturn(5); $promotion->setUsed(4)->shouldBeCalled(); $this->decrementPromotionUsage($order); }