Skip to content

Conversation

@dereuromark
Copy link
Member

Summary

  • Fix EntryCommandTest::testExecuteHelp assertion for changed help output format (checks for migrations: instead of Available Commands)
  • Fix ManagerFactoryTest dynamic property deprecations on PHP 8.4 by using local variables instead of dynamic class properties
  • Add missing plugin classes for Blog and Migrator test plugins to resolve CakePHP 5.3 deprecation warnings
  • Add proper assertions to PendingMigrationsMiddlewareTest risky tests instead of relying on @doesNotPerformAssertions

Test plan

  • All tests pass with no deprecations, failures, or risky tests

- Fix EntryCommandTest assertion for changed help output format
- Fix ManagerFactoryTest dynamic property deprecations (PHP 8.4)
- Add missing plugin classes for Blog and Migrator test plugins
- Add proper assertions to PendingMigrationsMiddlewareTest risky tests
@dereuromark dereuromark marked this pull request as draft January 11, 2026 08:14
@dereuromark
Copy link
Member Author

Maybe we skip those and instead release the new major. The if/else switches to have all tests green seem heavy.

@jamisonbryant
Copy link
Contributor

The test results are confusing! It was originally failing looking for <info>migrations:</info> and so I fixed it, but now a bunch of test are failing looking for <info>migrations</info>:!

Remove the assertion for 'migrations:</info>' as the help output
format differs between PHP versions. The remaining assertions
adequately verify the help output is displayed correctly.
The identity column syntax varies between CakePHP/database versions
(SERIAL vs GENERATED BY DEFAULT AS IDENTITY). Update the tests to
check for the key parts of the CREATE TABLE statement without being
strict about the identity column syntax.
@dereuromark dereuromark marked this pull request as ready for review January 13, 2026 03:24
@dereuromark dereuromark merged commit 7dbc620 into 4.x Jan 13, 2026
13 checks passed
@dereuromark dereuromark deleted the fix-test-deprecations branch January 13, 2026 03:24
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.

4 participants