Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Tests for "Content Repository Privileges" #5345

Merged

Conversation

bwaidelich
Copy link
Member

Related: #3732
Related: #5298

Behat tests for #3732

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is wip and all but i wanted to see where were going :)

bwaidelich and others added 12 commits November 10, 2024 14:22
…vileges-tests

# Conflicts:
#	Neos.Neos/Tests/Behavior/Features/Bootstrap/WorkspaceServiceTrait.php
…vileges-tests

# Conflicts:
#	Neos.Neos/Tests/Behavior/Features/Bootstrap/WorkspaceServiceTrait.php
Without this fix it was not possible to expect multiple exceptions in a single step or, worse, it led to false positives:

```gherkin
  Scenario:
    When doing something
    Then the last command should have thrown an exception of type "Foo"

    When doing something else
    Then the last command should have thrown an exception of type "Bar"
```

The 2nd time would succeed even if the previous interaction did not lead to an exception
…once-asserted-in-behat-tests

BUGFIX: Behat: Reset `lastCommandException` once asserted
…vileges-tests

# Conflicts:
#	Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/GenericCommandExecutionAndEventPublication.php
@bwaidelich bwaidelich marked this pull request as ready for review November 13, 2024 13:47
@bwaidelich bwaidelich merged commit f48b564 into feature/3732-cr-privileges-v2 Nov 13, 2024
3 checks passed
@bwaidelich bwaidelich deleted the feature/3732-cr-privileges-tests branch November 13, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants