Skip to content

Commit b941be3

Browse files
committed
Fix pipeline
1 parent a8488c1 commit b941be3

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Neos.ContentRepository.Export/Tests/Behavior/Features/Import/Import.feature

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,7 @@ Feature: As a user of the CR I want to export the event stream
6868
"""
6969
And I import the events.jsonl
7070

71-
And I expect the following errors to be logged
72-
| Skipping explicit content stream creation event. The export format should not contain "ContentStreamWasCreated". |
71+
And I expect a MigrationError with the message
72+
| Failed to read events. ContentStreamWasCreated is not expected in imported event stream. |
7373

74-
Then I expect exactly 3 events to be published on stream with prefix "ContentStream:cs-imported-identifier"
75-
And event at index 0 is of type "ContentStreamWasCreated" with payload:
76-
| Key | Expected |
77-
| contentStreamId | "cs-imported-identifier" |
78-
And event at index 1 is of type "RootNodeAggregateWithNodeWasCreated" with payload:
79-
| Key | Expected |
80-
| contentStreamId | "cs-imported-identifier" |
81-
| nodeAggregateId | "acme-site-sites" |
82-
| nodeTypeName | "Neos.Neos:Sites" |
83-
And event at index 2 is of type "NodeAggregateWithNodeWasCreated" with payload:
84-
| Key | Expected |
85-
| contentStreamId | "cs-imported-identifier" |
86-
| nodeAggregateId | "acme-site" |
87-
| nodeTypeName | "Vendor.Site:HomePage" |
74+
Then I expect exactly 0 events to be published on stream with prefix "ContentStream:cs-imported-identifier"

Neos.ContentRepository.Export/src/Processors/EventStoreImportProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ private static function extractContentStreamId(array $payload): ContentStreamId
195195
return ContentStreamId::fromString($payload['contentStreamId']);
196196
}
197197

198+
/** @phpstan-ignore-next-line */
198199
private function dispatch(Severity $severity, string $message, mixed ...$args): void
199200
{
200201
$renderedMessage = sprintf($message, ...$args);

0 commit comments

Comments
 (0)