Changeset 49518
- Timestamp:
- 11/06/2020 04:46:12 PM (4 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/tests/phpunit/tests/image/editorImagick.php
r41261 r49518 421 421 */ 422 422 public function test_rotate() { 423 $file = DIR_TESTDATA . '/images/ gradient-square.jpg';423 $file = DIR_TESTDATA . '/images/one-blue-pixel-100x100.png'; 424 424 425 425 $imagick_image_editor = new WP_Image_Editor_Imagick( $file ); … … 429 429 $property->setAccessible( true ); 430 430 431 $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 1, 1)->getColor();431 $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 0 )->getColor(); 432 432 433 433 $imagick_image_editor->rotate( 180 ); … … 440 440 */ 441 441 public function test_flip() { 442 $file = DIR_TESTDATA . '/images/ gradient-square.jpg';442 $file = DIR_TESTDATA . '/images/one-blue-pixel-100x100.png'; 443 443 444 444 $imagick_image_editor = new WP_Image_Editor_Imagick( $file ); … … 448 448 $property->setAccessible( true ); 449 449 450 $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 1, 1)->getColor();450 $color_top_left = $property->getValue( $imagick_image_editor )->getImagePixelColor( 0, 0 )->getColor(); 451 451 452 452 $imagick_image_editor->flip( true, false );
Note: See TracChangeset
for help on using the changeset viewer.