Skip to content

Commit d91c694

Browse files
committed
FEATURE: Allow InMemoryEventStore state to be reset
1 parent 1615cbc commit d91c694

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Helpers/InMemoryEventStore.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,9 @@ public function append(Events $events, AppendCondition $condition): void
133133
}
134134
$this->eventEnvelopes = $this->eventEnvelopes->append($newEventEnvelopes);
135135
}
136+
137+
public function resetState(): void
138+
{
139+
$this->eventEnvelopes = EventEnvelopes::none();
140+
}
136141
}

0 commit comments

Comments
 (0)