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: Fix testsuite for simple use cases (in phpunit) #5346

Merged
merged 13 commits into from
Nov 20, 2024

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Nov 6, 2024

Followup to #5344 to remove behat specific logic from test fakes so they can be used in php unit tests easily.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

@mhsdesign mhsdesign force-pushed the task/fix-testsuite-for-simple-use-cases branch from b36eba6 to 298080d Compare November 7, 2024 19:06
@mhsdesign mhsdesign mentioned this pull request Nov 7, 2024
6 tasks
Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

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

Thank you for your work on this. I can imagine, it wasn't joyful :)
It's not an easy pr to review (especially on a phone screen).
So just a mini comment and the question: shouldn't we replace all the Gherkin... fakes? They always made me wonder why we don't translate the input

@mhsdesign mhsdesign force-pushed the task/fix-testsuite-for-simple-use-cases branch from 298080d to 3c20365 Compare November 10, 2024 08:40
@mhsdesign mhsdesign marked this pull request as ready for review November 10, 2024 08:43
@mhsdesign
Copy link
Member Author

Ha thanks for the attempted early review. This was planned as a followup to #5344 but i hadnt rebased so far. The diff is now way more precise.

@mhsdesign mhsdesign changed the title TASK: Fix testsuite for simple use cases TASK: Fix testsuite for simple use cases (in phpunit) Nov 10, 2024
# Conflicts:
#	Neos.ContentRepository.BehavioralTests/Configuration/Settings.yaml
#	Neos.ContentRepository.BehavioralTests/Configuration/Testing/Behat/Settings.ContentRepositoryRegistry.yaml
#	Neos.ContentRepository.LegacyNodeMigration/Tests/Behavior/Bootstrap/FeatureContext.php
#	Neos.ContentRepository.TestSuite/Classes/Behavior/Features/Bootstrap/CRTestSuiteRuntimeVariables.php
#	Neos.ContentRepository.TestSuite/Classes/Fakes/FakeUserIdProvider.php
#	Neos.ContentRepository.TestSuite/Classes/Fakes/FakeUserIdProviderFactory.php
Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

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

Go for merge

…eded for testing

Instead, we replace the node type manager and rebuild the content repository.
See `iChangeTheNodeTypesInContentRepositoryTo` and `FakeNodeTypeManagerFactory`
@mhsdesign mhsdesign merged commit ad56c5c into neos:9.0 Nov 20, 2024
9 checks passed
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