FOUR-21803 Fix failing unit tests #8021
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




Description
The code line:
\Illuminate\Foundation\Testing\RefreshDatabaseState::$migrated = true;is no longer valid in Laravel 11.Solution
The
RefreshDatabasetrait is removed so that the migrations are not re-executed in each test.Related Tickets & Packages
https://processmaker.atlassian.net/browse/FOUR-21803
ci:connector-idp:feature/FOUR-20332
ci:package-actions-by-email:feature/FOUR-20332
ci:package-advanced-user-manager:feature/FOUR-20332
ci:package-ai:feature/FOUR-20332
ci:package-analytics-reporting:feature/FOUR-20332
ci:package-api-testing:feature/FOUR-20332
ci:package-auth:feature/FOUR-20332
ci:package-collections:feature/FOUR-20332
ci:package-data-sources:feature/FOUR-20332
ci:package-decision-engine:feature/FOUR-20332
ci:package-pm-blocks:feature/FOUR-20332
ci:package-projects:feature/FOUR-20332
ci:package-savedsearch:feature/FOUR-20332
ci:package-sentry:feature/FOUR-20332
ci:package-testing:feature/FOUR-20332
ci:package-translations:feature/FOUR-20332
ci:package-vocabularies:feature/FOUR-20332
ci:package-process-documenter:feature/FOUR-20332
ci:k8s-branch:fix-for-phpunit-10
...