Skip to content

Commit

Permalink
TASK: Fix test to assert on NodeReferencesWereSet.NodeAggregateId
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jun 19, 2024
1 parent 5977fe1 commit f127233
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ Feature: Migrations that contain nodes with "reference" or "references propertie
| c | /sites/site/c | Some.Package:SomeNodeType | {"text": "This is c", "refs": ["a", "b"]} |
And I run the event migration
Then I expect the following events to be exported
| Type | Payload |
| RootNodeAggregateWithNodeWasCreated | {"nodeAggregateId": "sites"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "site"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "a"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "b"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "c"} |
| NodeReferencesWereSet | {"sourceNodeAggregateId":"a","affectedSourceOriginDimensionSpacePoints":[[]],"referenceName":"ref","references":{"b":{"targetNodeAggregateId":"b","properties":null}}} |
| NodeReferencesWereSet | {"sourceNodeAggregateId":"c","affectedSourceOriginDimensionSpacePoints":[[]],"referenceName":"refs","references":{"a":{"targetNodeAggregateId":"a","properties":null},"b":{"targetNodeAggregateId":"b","properties":null}}} |
| Type | Payload |
| RootNodeAggregateWithNodeWasCreated | {"nodeAggregateId": "sites"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "site"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "a"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "b"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "c"} |
| NodeReferencesWereSet | {"nodeAggregateId":"a","affectedSourceOriginDimensionSpacePoints":[[]],"referenceName":"ref","references":{"b":{"targetNodeAggregateId":"b","properties":null}}} |
| NodeReferencesWereSet | {"nodeAggregateId":"c","affectedSourceOriginDimensionSpacePoints":[[]],"referenceName":"refs","references":{"a":{"targetNodeAggregateId":"a","properties":null},"b":{"targetNodeAggregateId":"b","properties":null}}} |


Scenario: Node with references in one dimension
Expand All @@ -60,16 +60,16 @@ Feature: Migrations that contain nodes with "reference" or "references propertie
| c | /sites/site/c | Some.Package:SomeNodeType | {"language": ["ch"]} | {"text": "This is c", "refs": ["a", "b"]} |
And I run the event migration
Then I expect the following events to be exported
| Type | Payload |
| RootNodeAggregateWithNodeWasCreated | {"nodeAggregateId": "sites"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "site"} |
| NodePeerVariantWasCreated | {} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "a"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "b"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "c"} |
| NodeReferencesWereSet | {"sourceNodeAggregateId":"a","affectedSourceOriginDimensionSpacePoints":[{"language": "en"}],"referenceName":"ref","references":{"b":{"targetNodeAggregateId":"b","properties":null}}} |
| NodeReferencesWereSet | {"sourceNodeAggregateId":"b","affectedSourceOriginDimensionSpacePoints":[{"language": "de"}],"referenceName":"ref","references":{"a":{"targetNodeAggregateId":"a","properties":null}}} |
| NodeReferencesWereSet | {"sourceNodeAggregateId":"c","affectedSourceOriginDimensionSpacePoints":[{"language": "ch"}],"referenceName":"refs","references":{"a":{"targetNodeAggregateId":"a","properties":null},"b":{"targetNodeAggregateId":"b","properties":null}}} |
| Type | Payload |
| RootNodeAggregateWithNodeWasCreated | {"nodeAggregateId": "sites"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "site"} |
| NodePeerVariantWasCreated | {} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "a"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "b"} |
| NodeAggregateWithNodeWasCreated | {"nodeAggregateId": "c"} |
| NodeReferencesWereSet | {"nodeAggregateId":"a","affectedSourceOriginDimensionSpacePoints":[{"language": "en"}],"referenceName":"ref","references":{"b":{"targetNodeAggregateId":"b","properties":null}}} |
| NodeReferencesWereSet | {"nodeAggregateId":"b","affectedSourceOriginDimensionSpacePoints":[{"language": "de"}],"referenceName":"ref","references":{"a":{"targetNodeAggregateId":"a","properties":null}}} |
| NodeReferencesWereSet | {"nodeAggregateId":"c","affectedSourceOriginDimensionSpacePoints":[{"language": "ch"}],"referenceName":"refs","references":{"a":{"targetNodeAggregateId":"a","properties":null},"b":{"targetNodeAggregateId":"b","properties":null}}} |

Scenario: Nodes with properties that are not part of the node type schema (see https://github.com/neos/neos-development-collection/issues/4804)
When I have the following node data rows:
Expand Down

0 comments on commit f127233

Please sign in to comment.