diff --git tests/phpunit/tests/image/editorImagick.php tests/phpunit/tests/image/editorImagick.php
index f62ad39815..ac531ff942 100644
|
|
class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { |
421 | 421 | * Test rotating an image 180 deg |
422 | 422 | */ |
423 | 423 | public function test_rotate() { |
424 | | $file = DIR_TESTDATA . '/images/gradient-square.jpg'; |
| 424 | $file = DIR_TESTDATA . '/images/one-blue-pixel-100x100.png'; |
425 | 425 | |
426 | 426 | $imagick_image_editor = new WP_Image_Editor_Imagick( $file ); |
427 | 427 | $imagick_image_editor->load(); |
… |
… |
class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { |
429 | 429 | $property = new ReflectionProperty( $imagick_image_editor, 'image' ); |
430 | 430 | $property->setAccessible( true ); |
431 | 431 | |
432 | | $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 1, 1 )->getColor(); |
| 432 | $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 0 )->getColor(); |
433 | 433 | |
434 | 434 | $imagick_image_editor->rotate( 180 ); |
435 | 435 | |
… |
… |
class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { |
440 | 440 | * Test flipping an image |
441 | 441 | */ |
442 | 442 | public function test_flip() { |
443 | | $file = DIR_TESTDATA . '/images/gradient-square.jpg'; |
| 443 | $file = DIR_TESTDATA . '/images/one-blue-pixel-100x100.png'; |
444 | 444 | |
445 | 445 | $imagick_image_editor = new WP_Image_Editor_Imagick( $file ); |
446 | 446 | $imagick_image_editor->load(); |
… |
… |
class Tests_Image_Editor_Imagick extends WP_Image_UnitTestCase { |
448 | 448 | $property = new ReflectionProperty( $imagick_image_editor, 'image' ); |
449 | 449 | $property->setAccessible( true ); |
450 | 450 | |
451 | | $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 1, 1 )->getColor(); |
| 451 | $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 0 )->getColor(); |
452 | 452 | |
453 | 453 | $imagick_image_editor->flip( true, false ); |
454 | 454 | |