Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#30820 closed defect (bug) (fixed)

Imagick unit test could randomly fail.

Reported by: voldemortensen Owned by: boonebgorges
Priority: normal Milestone: 4.2
Component: Build/Test Tools Version: 4.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description (last modified by voldemortensen)

In tests/phpunit/tests/image/editor_imagick.php, wp_get_image_editor is used instead of creating a new WP_Image_Editor_Imagick instance. This could potentially cause failures if Imagick is not available.

Attachments (1)

30820.diff​ (814 bytes ) - added by voldemortensen 12 years ago.

Download all attachments as: .zip

Change History (6)

#1 @voldemortensen
12 years ago

  • Description modified (diff)

This ticket was mentioned in ​Slack in #core by voldemortensen. ​View the logs.


12 years ago

This ticket was mentioned in ​Slack in #core by boone. ​View the logs.


12 years ago

#4 @boonebgorges
12 years ago

  • Milestone Awaiting Review → 4.2

#5 @boonebgorges
12 years ago

  • Owner set to boonebgorges
  • Resolution → fixed
  • Status new → closed

In 30990:

In Imagick tests, instantiate WP_Image_Editor_Imagick directly instead of calling wp_get_image_editor().

This is for greater consistency with other image editor tests.

Props voldemortensen.
Fixes #30820.

Note: See TracTickets for help on using tickets.