21 lines
491 B
PHP
21 lines
491 B
PHP
<?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);
|
|
});
|
|
});
|