Problem/Motivation
Tests are failing in various versions of Drupal and PHP higher than the versions configured for automated test.
Steps to reproduce
Run tests against Drupal 9.3 / PHP 8
Proposed resolution
- Fix tests
- Enable automated testing against Drupal 9.3 / PHP 8
| Comment | File | Size | Author |
|---|
Issue fork entity_embed-3221617
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 #2
mstrelan commentedAdding a test-only patch to trigger tests.
Comment #3
mstrelan commentedThis should fix the failures in PHP 8. There are still some failures related to testing on Drupal 9.
Comment #4
mstrelan commentedThere are some additional fails now in 9.3. Seems that some URLs that were previously absolute in 9.2.x are now relative in 9.3.x. I haven't updated the tests to accommodate this because I'm not sure if the change was intentional.
Comment #5
mstrelan commentedThe fails from 9.3 were related to #2669074: Convert file_create_url() & file_url_transform_relative() to service, deprecate it. Checking for an relative URL should work in older and newer versions. The two deprecated functions need to remain until Drupal 9.2 is no longer supported.
PHP 8 also complains about the sRGB profile of the CKEditor button image. I converted the image with Imagemagick and it's now about 10% of the size and PHP no longer complains.
I think the only outstanding issue will be the UpdateHookTest which I haven't looked at yet. I suspect the fixture is too old for Drupal 9. It might need to be recreated in Drupal 8.9.
Comment #8
phenaproximaHiding patches in favor of the merge request.
Comment #10
phenaproximaI'm satisfied. Fixed in 8.x-1.x. Thanks!