WordPress / phpunit-test-runner

GNU General Public License v2.0
64 stars 57 forks source link

Tests_Image_Editor_Imagick Issue #202

Open forgetwp opened 7 months ago

forgetwp commented 7 months ago

I've had this issue for couple of weeks now and I cannot seems to find any solution.

1) Tests_Image_Editor_Imagick::test_remove_pdf_alpha_channel_should_remove_the_alpha_channel_in_preview The intermediate size could not be retrieved. Failed asserting that false is of type "array".

/wptest/tests/phpunit/tests/image/editorImagick.php:680 /wptest/vendor/phpunit/phpunit/phpunit:107

I pulled latest git few times now, and during prepare I do see a lot of deprecated NPM warnings, but at the end it does say

Done.
Replacing variables in wp-tests-config.php
Success: Prepared environment.

However, during the test, it failing on Tests_Image_Editor_Imagick.

Worth mentioning it does also produce a lot of warnings about PHP10 unit is deprecated and will no longer be possible in PHPUnit 10

Node.js v16.20.2 All extensions installed and checked. Tested on PHP 7.4, 8.2, 8.3 and always the same issue. MariaDB 10.11.6

Any help is much appreciated.

forgetwp commented 5 months ago

Updated to the latest PHPUnit Test Runner Tool. Test again with PHP 7.4 all the way to 8.3 with node v21.6.1 (npm v10.2.4) - same issue.

Found this change back in 2023, so it could be related? - https://core.trac.wordpress.org/changeset/56271

forgetwp commented 5 months ago

Just want to add comment, I tried with the latest commit today and this issue still exist, not sure how we could bypass this or fix this on our end.

javiercasares commented 5 months ago

The test errors should be reviews by the Test Team. I'll pass the information and see if they can give us some support.

swissspidy commented 3 months ago

I opened https://core.trac.wordpress.org/ticket/60798 to investigate this and we found a potential solution already. I suggest following that core ticket for updates in case you're interested.