The module has a few tests that, depending on the outcome of #3063887: Support PHPUnit 8 in Drupal 9, drop support for PHPUnit 7, may need to be updated:
------ --------------------------------------------------------------------------------------
Line contrib/focal_point/tests/src/Unit/Effects/FocalPointEffectsTest.php
------ --------------------------------------------------------------------------------------
44 Call to deprecated method assertAttributeEquals() of class PHPUnit\Framework\Assert:
https://github.com/sebastianbergmann/phpunit/issues/3338
45 Call to deprecated method assertAttributeEquals() of class PHPUnit\Framework\Assert:
https://github.com/sebastianbergmann/phpunit/issues/3338
------ --------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | prepare-the-module-for-d9-3109593-#3.patch | 1.69 KB | malte.koelle |
Comments
Comment #2
jenlamptonI believe that if you add drupal 9 as an option to the
composer.jsonfile in this project you can get a nice little Compatible with Drupal 9 badge in the Project information section on the module page.Below is a code sample from a module that has the badge.
It also looks like it may possible to get the badge by adding the 'core_version_requirement' key in the modules info.yml file, which, in turn, will add the version to the require section of
composer.json. Example follows.Comment #3
malte.koelle commentedI have created a patch to remove the deprecated warnings in the FocalPointEffectsTest.
As far as I've seen it the 'core_version_requirement' key is already in the info.yml file.
I would appreciate any feedback.
Comment #4
skaughtCrop API is also preparing..
#3121231: Declare Drupal 9 compatibility in crop_media_entity
Comment #6
bleen commentedCommitted the patch in #3 to remove those extraneous deprecation messages ... also confirmed that `core_version_requirement: ^8 || ^9` is in the info.yml
Comment #7
bleen commented