Skip to content

Commit

Permalink
WEB-4311: Remove unneeded guard start event logging in tests.
Browse files Browse the repository at this point in the history
This commit removes the logging of the start of guard events in various test classes. This change is meant to simplify event handling and reduce clutter in log files by only keeping necessary log entries.
  • Loading branch information
YunusEmreNalbant committed Dec 13, 2023
1 parent 01b1669 commit 030cd01
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion tests/EventStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
'in.state.active.entry.finish',
'MUT',
'in.transition.active.MUT.start',
'in.guard.isEvenGuard.start',
'in.guard.isEvenGuard.fail',
'in.transition.active.MUT.fail',
]);
Expand Down
3 changes: 0 additions & 3 deletions tests/HistoryValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
'machine.state.green.entry.finish',
'TIMER',
'machine.transition.green.TIMER.start',
'machine.guard.IsTimerValidValidationGuard.start',
'machine.guard.IsTimerValidValidationGuard.fail',
'machine.transition.green.TIMER.fail',
]);
Expand All @@ -56,12 +55,10 @@
'machine.state.green.entry.finish',
'TIMER',
'machine.transition.green.TIMER.start',
'machine.guard.IsTimerValidValidationGuard.start',
'machine.guard.IsTimerValidValidationGuard.fail',
'machine.transition.green.TIMER.fail',
'TIMER',
'machine.transition.green.TIMER.start',
'machine.guard.IsTimerValidValidationGuard.start',
'machine.guard.IsTimerValidValidationGuard.pass',
'machine.transition.green.TIMER.finish',
'machine.state.green.exit.start',
Expand Down
2 changes: 1 addition & 1 deletion tests/StateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
test('Logs if log writing is turned on', function (): void {
$machine = TrafficLightsMachine::create();

Log::shouldReceive('debug')->times(4);
Log::shouldReceive('debug')->times(3);

$machine->send(event: ['type' => 'MUT']);
});

0 comments on commit 030cd01

Please sign in to comment.