Skip to content

Commit

Permalink
Merge pull request #5073 from neos/bugfix/fix-behat-command-steps
Browse files Browse the repository at this point in the history
BUGFIX: Fix behat steps
  • Loading branch information
mhsdesign committed May 19, 2024
2 parents 22acc13 + 724e08b commit 0243cf1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Feature: Change node aggregate type - basic error cases


Scenario: Try to change the node aggregate type on a non-existing content stream
When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| workspaceName | "non-existing" |
| nodeAggregateId | "sir-david-nodenborough" |
Expand All @@ -74,15 +74,15 @@ Feature: Change node aggregate type - basic error cases
Then the last command should have thrown an exception of type "WorkspaceDoesNotExist"

Scenario: Try to change the type on a non-existing node aggregate
When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "nody-mc-nodeface" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ChildOfNodeTypeA" |
| strategy | "happypath" |
Then the last command should have thrown an exception of type "NodeAggregateCurrentlyDoesNotExist"

Scenario: Try to change a node aggregate to a non existing type
When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "sir-david-nodenborough" |
| newNodeTypeName | "Neos.ContentRepository.Testing:Undefined" |
Expand All @@ -97,7 +97,7 @@ Feature: Change node aggregate type - basic error cases
| parentNodeAggregateId | "sir-david-nodenborough" |
| nodeName | "parent" |
| initialPropertyValues | {} |
When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "nody-mc-nodeface" |
| newNodeTypeName | "Neos.ContentRepository.Testing:NodeTypeB" |
Expand All @@ -122,7 +122,7 @@ Feature: Change node aggregate type - basic error cases
| parentNodeAggregateId | "autocreated-child" |
| initialPropertyValues | {} |

When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "nody-mc-nodeface" |
| newNodeTypeName | "Neos.ContentRepository.Testing:NodeTypeB" |
Expand All @@ -140,7 +140,7 @@ Feature: Change node aggregate type - basic error cases
| initialPropertyValues | {} |
| tetheredDescendantNodeAggregateIds | {"autocreated": "nody-mc-nodeface"} |

When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "nody-mc-nodeface" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ParentNodeType" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Feature: Change node aggregate type - behavior of DELETE strategy
| originDimensionSpacePoint | {"language":"de"} |
| parentNodeAggregateId | "sir-david-nodenborough" |

When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "sir-david-nodenborough" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ParentNodeTypeB" |
Expand Down Expand Up @@ -123,7 +123,7 @@ Feature: Change node aggregate type - behavior of DELETE strategy
| parentNodeAggregateId | "autocreated-child" |
| initialPropertyValues | {} |

When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "parent2-na" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ParentNodeTypeB" |
Expand Down Expand Up @@ -162,7 +162,7 @@ Feature: Change node aggregate type - behavior of DELETE strategy
| sourceOrigin | {"language":"de"} |
| targetOrigin | {"language":"gsw"} |

When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "nodea-identifier-de" |
| newNodeTypeName | "Neos.ContentRepository.Testing:NodeTypeB" |
Expand Down Expand Up @@ -198,7 +198,7 @@ Feature: Change node aggregate type - behavior of DELETE strategy
| sourceOrigin | {"language":"de"} |
| targetOrigin | {"language":"gsw"} |

When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "nodea-identifier-de" |
| newNodeTypeName | "Neos.ContentRepository.Testing:NodeTypeB" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Feature: Change node aggregate type - behavior of HAPPYPATH strategy
| originDimensionSpacePoint | {"language":"de"} |
| parentNodeAggregateId | "sir-david-nodenborough" |

When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "sir-david-nodenborough" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ParentNodeTypeB" |
Expand All @@ -107,7 +107,7 @@ Feature: Change node aggregate type - behavior of HAPPYPATH strategy
| parentNodeAggregateId | "autocreated-child" |
| initialPropertyValues | {} |

When the command ChangeNodeAggregateType was published with payload and exceptions are caught:
When the command ChangeNodeAggregateType is executed with payload and exceptions are caught:
| Key | Value |
| nodeAggregateId | "parent2-na" |
| newNodeTypeName | "Neos.ContentRepository.Testing:ParentNodeTypeB" |
Expand All @@ -130,7 +130,7 @@ Feature: Change node aggregate type - behavior of HAPPYPATH strategy
| sourceOrigin | {"language":"de"} |
| targetOrigin | {"language":"gsw"} |

When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "nodea-identifier-de" |
| newNodeTypeName | "Neos.ContentRepository.Testing:NodeTypeB" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Feature: Behavior of Node timestamp properties "created", "originalCreated", "la
Scenario: NodeAggregateTypeWasChanged events update last modified timestamps
When the current date and time is "2023-03-16T13:00:00+01:00"
And the command ChangeNodeAggregateType was published with payload:
And the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| workspaceName | "user-test" |
| nodeAggregateId | "a" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait NodeTypeChange
abstract protected function readPayloadTable(TableNode $payloadTable): array;

/**
* @Given /^the command ChangeNodeAggregateType was published with payload:$/
* @Given /^the command ChangeNodeAggregateType is executed with payload:$/
* @param TableNode $payloadTable
* @throws \Exception
*/
Expand All @@ -57,7 +57,7 @@ public function theCommandChangeNodeAggregateTypeIsExecutedWithPayload(TableNode
}

/**
* @Given /^the command ChangeNodeAggregateType was published with payload and exceptions are caught:$/
* @Given /^the command ChangeNodeAggregateType is executed with payload and exceptions are caught:$/
* @param TableNode $payloadTable
* @throws \Exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Feature: Low level tests covering the inner behavior of the routing projection
| "c" | "lady-eleonode-rootford/shernode-homes/c" | "c" | "shernode-homes" | "b" | null | "Neos.Neos:Test.Routing.Page" |

Scenario: Changing the NodeTypeName of a NodeAggregate
When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "c" |
| newNodeTypeName | "Neos.Neos:Test.Routing.SomeOtherPage" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Feature: Routing behavior of shortcut nodes
Then the node "shortcut-first-child-node" in content stream "cs-identifier" and dimension "{}" should resolve to URL "/david-nodenborough/shortcuts/shortcut-first-child/first-child-node"

Scenario: Regular document node gets turned into a shortcut node
When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "sir-david-nodenborough-ii" |
| newNodeTypeName | "Neos.Neos:Shortcut" |
Expand All @@ -203,7 +203,7 @@ Feature: Routing behavior of shortcut nodes
Then the node "sir-david-nodenborough-ii" in content stream "cs-identifier" and dimension "{}" should resolve to URL "/david-nodenborough-2/nodeward-3"

Scenario: Shortcut node gets turned into a regular document node
When the command ChangeNodeAggregateType was published with payload:
When the command ChangeNodeAggregateType is executed with payload:
| Key | Value |
| nodeAggregateId | "shortcut-first-child-node" |
| newNodeTypeName | "Neos.Neos:Test.Routing.Page" |
Expand Down

0 comments on commit 0243cf1

Please sign in to comment.