Skip to content

Commit

Permalink
FEATURE: Allow InMemoryEventStore state to be reset
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Aug 6, 2024
1 parent 1615cbc commit d91c694
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Helpers/InMemoryEventStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,9 @@ public function append(Events $events, AppendCondition $condition): void
}
$this->eventEnvelopes = $this->eventEnvelopes->append($newEventEnvelopes);
}

public function resetState(): void
{
$this->eventEnvelopes = EventEnvelopes::none();
}
}

0 comments on commit d91c694

Please sign in to comment.