feat: establish reservation portal foundation
This commit is contained in:
5
tests/Unit/ExampleTest.php
Normal file
5
tests/Unit/ExampleTest.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
test('that true is true', function () {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
9
tests/Unit/ReservationStatusTest.php
Normal file
9
tests/Unit/ReservationStatusTest.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Domain\Reservations\Enums\ReservationStatus;
|
||||
|
||||
it('permite apenas transições de estado explícitas', function () {
|
||||
expect(ReservationStatus::PendingApproval->canTransitionTo(ReservationStatus::Approved))->toBeTrue()
|
||||
->and(ReservationStatus::PendingApproval->canTransitionTo(ReservationStatus::Delivered))->toBeFalse()
|
||||
->and(ReservationStatus::Completed->allowedTransitions())->toBeEmpty();
|
||||
});
|
||||
Reference in New Issue
Block a user