code)->toBe($code) ->and($campaignCoupon->qty)->toBe($qty) ->and($campaignCoupon->printRules)->toBe($printRules) ->and($campaignCoupon->warningThresholdQty)->toBe($warningThresholdQty); }); it('creates a valid campaign coupon whitout print rules', function (): void { // GIVEN $code = new ProcessingCode('PC1'); $qty = StockId::generate(); $warningThresholdQty = new WarningThresholdQuantity(100); // WHEN $campaignCoupon = new CampaignCoupon($code, $qty, $warningThresholdQty); // THEN expect($campaignCoupon->code)->toBe($code) ->and($campaignCoupon->qty)->toBe($qty) ->and($campaignCoupon->warningThresholdQty)->toBe($warningThresholdQty); }); });