-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4708 - add test cases for content stream closing
- Loading branch information
Bernhard Schmitt
committed
Mar 13, 2024
1 parent
a93bdde
commit b194763
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...sts/Behavior/Features/ContentStreamClosing/01-CloseContentStream_ConstraintChecks.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,31 @@ | ||
@contentrepository @adapters=DoctrineDBAL | ||
Feature: Constraint check test cases for closing content streams | ||
|
||
Background: | ||
Given using no content dimensions | ||
And using the following node types: | ||
"""yaml | ||
Neos.ContentRepository:Root: {} | ||
""" | ||
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" | | ||
And the graph projection is fully up to date | ||
|
||
Scenario: Try to close a non-existing content stream: | ||
And the command CloseContentStream is executed with payload and exceptions are caught: | ||
| Key | Value | | ||
| contentStreamId | "i-do-not-exist" | | ||
Then the last command should have thrown an exception of type "ContentStreamDoesNotExistYet" | ||
|
||
Scenario: Try to close a content stream that is already closed: | ||
When the command CloseContentStream is executed with payload: | ||
| Key | Value | | ||
| contentStreamId | "cs-identifier" | | ||
And the command CloseContentStream is executed with payload and exceptions are caught: | ||
| Key | Value | | ||
| contentStreamId | "cs-identifier" | | ||
Then the last command should have thrown an exception of type "ContentStreamIsClosed" |
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
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
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