ldc-cocotte/tests/Unit/App/Actions/Orders/FinalizeOrderInputTest.php
Jérémy Munsch d0efb0f527
refactor: update namespaces for actions and queries
Refactored the codebase to change the namespaces of various actions and queries from `App\Actions` to `App\Cqs\Actions` and `App\Queries` to `App\Cqs\Queries`. This restructuring improves organization and clarity in the codebase.
2026-11-10 15:13:26 +01:00

28 lines
717 B
PHP

<?php
declare(strict_types=1);
use App\Cqs\Actions\Orders\FinalizeOrderInput;
use Domain\Models\ValueObjects\Entities\ShopperId;
use Ramsey\Uuid\Uuid;
describe('FinalizeOrderInput', function (): void {
it('can be instantiated with null shopperId', function (): void {
// GIVEN & WHEN
$input = new FinalizeOrderInput();
// THEN
expect($input->shopperId)->toBeNull();
});
it('can be instantiated with valid shopperId', function (): void {
// GIVEN
$shopperId = new ShopperId(Uuid::uuid7());
// WHEN
$input = new FinalizeOrderInput(shopperId: $shopperId);
// THEN
expect($input->shopperId)->toBe($shopperId);
});
});