Skip to content

Commit

Permalink
WB-707: test(resolveinlinebehaviortest): add exception case for inval…
Browse files Browse the repository at this point in the history
…id behavior type
  • Loading branch information
deligoez committed Nov 19, 2024
1 parent f40f51a commit c836a73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ResolveInlineBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,8 @@
->toThrow(BehaviorNotFoundException::class, 'Behavior of type `events.nonExistentEvent` not found.');
});

test('it throws exception when behavior type not found', function (): void {
// Act & Assert
expect(fn () => OrderMachine::getBehavior('invalidType.someBehavior'))
->toThrow(BehaviorNotFoundException::class, 'Behavior of type `invalidType.someBehavior` not found.');
});

0 comments on commit c836a73

Please sign in to comment.