Skip to content

Commit

Permalink
TASK: Fixup for pr #4641
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 31, 2023
1 parent fcc7cbc commit 9f7ee86
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions Neos.Neos/Tests/Behavior/Features/Fusion/ContentCollection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ Feature: Tests for the "Neos.Neos:ContentCollection" Fusion prototype
And the Fusion context node is "a"
And the Fusion context request URI is "http://localhost"

# Scenario: missing Neos.Neos.ContentCollection node
# When I execute the following Fusion code:
# """fusion
# include: resource://Neos.Fusion/Private/Fusion/Root.fusion
# include: resource://Neos.Neos/Private/Fusion/Root.fusion
#
# test = Neos.Neos:ContentCollection
# """
# Then I expect the following Fusion rendering error:
# """
# No content collection of type Neos.Neos:ContentCollection could be found in the current node (/sites/a) or at the path "to-be-set-by-user". You might want to adjust your node type configuration and create the missing child node through the "./flow node:repair --node-type Neos.Neos:Test.DocumentType" command.
# """
#
# Scenario: invalid nodePath
# When I execute the following Fusion code:
# """fusion
# include: resource://Neos.Fusion/Private/Fusion/Root.fusion
# include: resource://Neos.Neos/Private/Fusion/Root.fusion
#
# test = Neos.Neos:ContentCollection {
# nodePath = 'invalid'
# }
# """
# Then I expect the following Fusion rendering error:
# """
# No content collection of type Neos.Neos:ContentCollection could be found in the current node (/sites/a) or at the path "invalid". You might want to adjust your node type configuration and create the missing child node through the "./flow node:repair --node-type Neos.Neos:Test.DocumentType" command.
# """
Scenario: missing Neos.Neos.ContentCollection node
When I execute the following Fusion code:
"""fusion
include: resource://Neos.Fusion/Private/Fusion/Root.fusion
include: resource://Neos.Neos/Private/Fusion/Root.fusion
test = Neos.Neos:ContentCollection
"""
Then I expect the following Fusion rendering error:
"""
No content collection of type Neos.Neos:ContentCollection could be found in the current node (/sites/a) or at the path "to-be-set-by-user". You might want to adjust your node type configuration and create the missing child node through the "./flow node:repair --node-type Neos.Neos:Test.DocumentType" command.
"""

Scenario: invalid nodePath
When I execute the following Fusion code:
"""fusion
include: resource://Neos.Fusion/Private/Fusion/Root.fusion
include: resource://Neos.Neos/Private/Fusion/Root.fusion
test = Neos.Neos:ContentCollection {
nodePath = 'invalid'
}
"""
Then I expect the following Fusion rendering error:
"""
No content collection of type Neos.Neos:ContentCollection could be found in the current node (/sites/a) or at the path "invalid". You might want to adjust your node type configuration and create the missing child node through the "./flow node:repair --node-type Neos.Neos:Test.DocumentType" command.
"""

Scenario: empty ContentCollection
When I execute the following Fusion code:
Expand Down

0 comments on commit 9f7ee86

Please sign in to comment.