Changeset 47338 for branches/3.8/tests/phpunit/tests/image/resize.php
- Timestamp:
- 02/21/2020 01:05:39 PM (5 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/image/resize.php
r25002 r47338 5 5 * @group media 6 6 * @group upload 7 * @group resize 7 8 */ 9 require_once( dirname( __FILE__ ) . '/base.php' ); 10 8 11 abstract class WP_Tests_Image_Resize_UnitTestCase extends WP_Image_UnitTestCase { 9 12 … … 109 112 $this->assertEquals( IMAGETYPE_JPEG, $type ); 110 113 111 unlink( $image);114 unlink( $image ); 112 115 } 113 116 … … 136 139 137 140 /** 138 * Try resizing a php file (bad image)139 * @ticket 6821140 */141 public function test_resize_bad_image() {142 $image = $this->resize_helper( DIR_TESTDATA.'/export/crazy-cdata.xml', 25, 25 );143 $this->assertInstanceOf( 'WP_Error', $image );144 $this->assertEquals( 'invalid_image', $image->get_error_code() );145 }146 147 148 /**149 141 * Function to help out the tests 150 142 */
Note: See TracChangeset
for help on using the changeset viewer.