Skip to content

Commit

Permalink
TASK: Add test for find operation
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Nov 4, 2023
1 parent 10562aa commit 4854053
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Neos.Neos/Tests/Behavior/Features/Fusion/FlowQuery.feature
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,19 @@ Feature: Tests for the "Neos.ContentRepository" Flow Query methods.
noFilter: a1a1,a1a2,a1a3,a1a5,a1a6,a1a7
withFilter: a1a1,a1a7
"""

Scenario: Find
When the Fusion context node is "a1"
When I execute the following Fusion code:
"""fusion
test = Neos.Fusion:DataStructure {
typeFilter = ${q(node).find('[instanceof Neos.Neos:Test.DocumentType2]').get()}
combinedFilter = ${q(node).find('[instanceof Neos.Neos:Test.DocumentType2][uriPathSegment*="b1"]').get()}
@process.render = Neos.Neos:Test.RenderNodesDataStructure
}
"""
Then I expect the following Fusion rendering result:
"""
typeFilter: a1a,a1b1a,a1a2,a1b2,a1a3,a1a4,a1a5,a1a6
combinedFilter: a1b1a
"""

0 comments on commit 4854053

Please sign in to comment.