forked from neos/neos-development-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Add failing test for neos#5350
> Node aggregate classifications do not match. Expected "regular", got "tethered". Or a catchup will fail with > The NodeName must be set if the Node is tethered
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...sitory.BehavioralTests/Tests/Behavior/Features/NodeCopying/CopyNode_TetheredNodes.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Feature: Copy nodes with tethered nodes | ||
|
||
Background: | ||
Given using no content dimensions | ||
And using the following node types: | ||
"""yaml | ||
'Neos.ContentRepository.Testing:Document': [] | ||
'Neos.ContentRepository.Testing:DocumentWithTethered': | ||
childNodes: | ||
tethered: | ||
type: 'Neos.ContentRepository.Testing:Document' | ||
""" | ||
And using identifier "default", I define a content repository | ||
And I am in content repository "default" | ||
And the command CreateRootWorkspace is executed with payload: | ||
| Key | Value | | ||
| workspaceName | "live" | | ||
| newContentStreamId | "cs-identifier" | | ||
When I am in workspace "live" and dimension space point {} | ||
And I am user identified by "initiating-user-identifier" | ||
And the command CreateRootNodeAggregateWithNode is executed with payload: | ||
| Key | Value | | ||
| nodeAggregateId | "lady-eleonode-rootford" | | ||
| nodeTypeName | "Neos.ContentRepository:Root" | | ||
|
||
When the following CreateNodeAggregateWithNode commands are executed: | ||
| nodeAggregateId | parentNodeAggregateId | nodeTypeName | tetheredDescendantNodeAggregateIds | | ||
| sir-david-nodenborough | lady-eleonode-rootford | Neos.ContentRepository.Testing:Document | {} | | ||
| nody-mc-nodeface | sir-david-nodenborough | Neos.ContentRepository.Testing:Document | | | ||
| sir-nodeward-nodington-iii | lady-eleonode-rootford | Neos.ContentRepository.Testing:DocumentWithTethered | {"tethered": "nodewyn-tetherton"} | | ||
|
||
Scenario: Coping a tethered node turns it into a regular node | ||
And I expect the node aggregate "nodewyn-tetherton" to exist | ||
And I expect this node aggregate to be classified as "tethered" | ||
|
||
When the command CopyNodesRecursively is executed with payload: | ||
| Key | Value | | ||
| sourceDimensionSpacePoint | {} | | ||
| sourceNodeAggregateId | "nodewyn-tetherton" | | ||
| targetDimensionSpacePoint | {} | | ||
| targetParentNodeAggregateId | "sir-david-nodenborough" | | ||
| nodeAggregateIdMapping | {"nodewyn-tetherton": "nodewyn-tetherton-copy"} | | ||
|
||
And I expect the node aggregate "nodewyn-tetherton-copy" to exist | ||
# must not be tethered! | ||
And I expect this node aggregate to be classified as "regular" | ||
And I expect this node aggregate to be of type "Neos.ContentRepository.Testing:Document" | ||
And I expect this node aggregate to be unnamed | ||
And I expect this node aggregate to occupy dimension space points [[]] | ||
And I expect this node aggregate to disable dimension space points [] | ||
And I expect this node aggregate to have no child node aggregates | ||
And I expect this node aggregate to have the parent node aggregates ["sir-david-nodenborough"] |