Changeset 45067
- Timestamp:
- 03/29/2019 02:48:08 AM (6 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/editorImagick.php
r42863 r45067 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.