Changeset 49520 for branches/4.8
- Timestamp:
- 11/06/2020 04:52:40 PM (4 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/tests/phpunit/tests/image/editor_imagick.php
r40123 r49520 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 ); … … 466 466 467 467 $this->assertNotInstanceOf( 'WP_Error', $editor ); 468 468 469 469 $editor->load(); 470 470 $editor->resize( 5, 5 );
Note: See TracChangeset
for help on using the changeset viewer.