2026-09-30 12:43:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-10 14:28:00 +01:00
|
|
|
namespace Tests\Unit\App\Cqs\Actions\Discounts;
|
2026-09-30 12:43:55 +02:00
|
|
|
|
2026-11-10 14:28:00 +01:00
|
|
|
use App\Cqs\Actions\Discounts\DeleteDiscountInput;
|
2026-09-30 12:43:55 +02:00
|
|
|
use App\Models\Discount;
|
|
|
|
|
|
|
|
|
|
describe('DeleteDiscountInput', function (): void {
|
|
|
|
|
it('creates a valid DeleteDiscountInput instance', function (): void {
|
|
|
|
|
// GIVEN
|
|
|
|
|
$discount = new Discount();
|
|
|
|
|
|
|
|
|
|
// WHEN
|
|
|
|
|
$input = new DeleteDiscountInput(discount: $discount);
|
|
|
|
|
|
|
|
|
|
// THEN
|
|
|
|
|
expect($input->discount)->toBe($discount);
|
|
|
|
|
});
|
|
|
|
|
});
|