Skip to content

Commit

Permalink
TASK: Adjust comments to not reference renamed `NodeAggregateEventPub…
Browse files Browse the repository at this point in the history
…lisher`
  • Loading branch information
mhsdesign committed Oct 28, 2024
1 parent 5e12a48 commit 38835ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function enrichWithCommand(
if ($i === 0) {
if (!$command instanceof \JsonSerializable) {
throw new \RuntimeException(sprintf(
'Command %s must be JSON Serializable to be used with NodeAggregateEventPublisher.',
'Command %s must be JSON Serializable to be rebase able.',
get_class($command)
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ public function iExpectTheFollowingJsonL(PyStringNode $string): void
$eventsWithoutRandomIds = [];

foreach ($exportedEvents as $exportedEvent) {
// we have to remove the event id in \Neos\ContentRepository\Core\Feature\Common\NodeAggregateEventPublisher::enrichWithCommand
// and the initiatingTimestamp to make the events diff able
// we have to remove the event id and initiatingTimestamp to make the events diff able
$eventsWithoutRandomIds[] = $exportedEvent
->withIdentifier('random-event-uuid')
->processMetadata(function (array $metadata) {
Expand Down

0 comments on commit 38835ca

Please sign in to comment.