Problem/Motivation
Now that Drupal 11 is in beta, let's support it.
An Upgrade Status module scan identifies the following issues:
web/modules/dev/encrypt/tests/src/Unit/Entity/EncryptionProfileTest.php 87 Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
web/modules/dev/encrypt/tests/src/Unit/Entity/EncryptionProfileTest.php 103 Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
web/modules/dev/encrypt/tests/src/Unit/Entity/EncryptionProfileTest.php 205 Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
web/modules/dev/encrypt/tests/src/Unit/Entity/EncryptionProfileTest.php 239 Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
web/modules/dev/encrypt/tests/src/Unit/Entity/EncryptionProfileTest.php 267 Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
Issue fork encrypt-3448070
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedComment #4
ptmkenny commentedComment #5
ptmkenny commentedI updated the tests and removed support for Drupal 8 since PHPUnit 10 requires Drupal 9 at a minimum.
Comment #6
rlhawkThanks for this. I'm hesitant to drop support for Drupal 8 only because of tests. If the module still works with D8, I'd like it to still be installable, even though tests can't be run.
Comment #7
ptmkenny commentedOk, updated!
Comment #8
ptmkenny commentedAutomated tests are failing so setting to "Needs work".
Comment #9
jcnventuraAt this moment, and since this is only changing the tests directory, removing support for D8 and D9 would not be entirely justified.
There's still about 170K sites out there running D8 and D9, and maybe they can't upgrade to the next major for some reason, but could keep up with this module.
Comment #10
ptmkenny commentedOk, tests are now green, so I'm setting to "Needs Review."
Comment #11
jcnventuraTest modules should not have a
core_version_requirementas long as they are inpackage: Testing. See https://www.drupal.org/node/3070687#testComment #12
jcnventuraComment #13
jcnventuraTaking into account the fact that rector didn't find anything else to be fixed (https://dev.acquia.com/drupal11/deprecation_status/projects/encrypt) and that this only changes tests, and they are now passing, I think this can be merged.
Marking RTBC even if I was the last one committing, since my change was really minor.
Comment #14
rlhawkThis is fantastic, thanks!