ldc-boutique-cnc-sable/tests/Unit/App/Actions/Discounts/DeleteDiscountInputTest.php

22 lines
491 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace Tests\Unit\App\Actions\Discounts;
use App\Actions\Discounts\DeleteDiscountInput;
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);
});
});