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

MNT Refactor permission check unit tests #487

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Jul 20, 2022

Follow up from #486

Refactored test class to be clearer what is being tested. It was failing previously because there were incorrect assumptions about the order in which objects were being written/read from the db which were very opaque.

Also updated the phpunit config via phpunit --migrate-configuration

This should also fix https://github.com/silverstripe/recipe-cms/runs/7352643198?check_suite_focus=true which is only failing the graphql unit test

Parent:

@emteknetnz emteknetnz merged commit 4abbaf4 into silverstripe:3.7 Jul 21, 2022
@emteknetnz emteknetnz deleted the pulls/3.7/fix-unit-tests branch July 21, 2022 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants