function it_increments_promotion_usage_if_promotion_was_used(OrderInterface $order, PromotionInterface $promotion) { $order->getPromotions()->willReturn([$promotion]); $promotion->incrementUsed()->shouldBeCalled(); $this->incrementPromotionUsage($order); }