Skip to content

Commit

Permalink
chor: updated fails transition to same state when not allowed to use …
Browse files Browse the repository at this point in the history
…a model with out ignoresamestate
  • Loading branch information
zayedadel committed Dec 26, 2024
1 parent b8247ca commit 94e557e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TransitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

it('fails transition to same state when not allowed', function () {
$model = TestModel::create([
'state' => IgnoreSameStateModelStateA::class,
'state' => StateA::class,
]);

$this->expectException(TransitionNotFound::class);

$model->state->transitionTo(IgnoreSameStateModelStateA::class);
$model->state->transitionTo(StateA::class);
});

it('custom transition test', function () {
Expand Down

0 comments on commit 94e557e

Please sign in to comment.