Changeset 49517
- Timestamp:
- 11/06/2020 04:44:34 PM (4 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
-
branches/5.1/tests/phpunit/tests/image/editorImagick.php
r42863 r49517 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 ); … … 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 ); … … 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 ); … … 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 );
Note: See TracChangeset
for help on using the changeset viewer.