Skip to content

Commit

Permalink
test: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YunusEmreNalbant committed Nov 14, 2023
1 parent 5131e2c commit feaebed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MachineTransitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
it('If the event is not transactional, its data is persistent', function (): void {
$machine = AsdMachine::create();

expect(fn () => $machine->send(new SEvent()))
expect(fn () => $machine->send(new SEvent(isTransactional: false)))
->toThrow(new Exception('error'));

$models = ModelA::all();
Expand All @@ -99,7 +99,7 @@
it('If the event is transactional, it rollbacks the data', function (): void {
$machine = AsdMachine::create();

expect(fn () => $machine->send(new SEvent(isTransactional: true)))
expect(fn () => $machine->send(new SEvent()))
->toThrow(new Exception('error'));

$models = ModelA::all();
Expand Down

0 comments on commit feaebed

Please sign in to comment.