Opened 10 years ago
Closed 10 years ago
#36588 closed defect (bug) (fixed)
Test_Image_Resize_GD::test_resize_bad_image() doesn't use GD
| Reported by: | ocean90 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
The test method uses WP_Tests_Image_Resize_UnitTestCase::resize_helper() which is using wp_get_image_editor() internally. wp_get_image_editor() returns the first available image editor which can be Imagick too.
In [30660] the test was changed to GD-only and moved to resize_gd.php in [31257].
Example PHPUnit output when Imagick is broken, see #36587:
$ phpunit --group media 1) Test_Image_Resize_GD::test_resize_bad_image ImagickException: imagecreatefromstring(): Data is not in a recognized format src/wp-includes/class-wp-image-editor-gd.php:110 src/wp-includes/media.php:2851 tests/phpunit/tests/image/resize.php:154 tests/phpunit/tests/image/resize_gd.php:32
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 37327: