diff --git tests/phpunit/tests/image/functions.php tests/phpunit/tests/image/functions.php
index 27bdbf3181..785161cef3 100644
|
|
|
class Tests_Image_Functions extends WP_UnitTestCase { |
| 266 | 266 | |
| 267 | 267 | // First, test with deprecated wp_load_image function |
| 268 | 268 | $editor1 = wp_load_image( DIR_TESTDATA ); |
| 269 | | $this->assertNotInternalType( 'resource', $editor1 ); |
| | 269 | $this->assertInternalType( 'string', $editor1 ); |
| 270 | 270 | |
| 271 | 271 | $editor2 = wp_get_image_editor( DIR_TESTDATA ); |
| 272 | | $this->assertNotInternalType( 'resource', $editor2 ); |
| | 272 | $this->assertInstanceOf( 'WP_Error', $editor2 ); |
| 273 | 273 | |
| 274 | 274 | // Then, test with editors. |
| 275 | 275 | $classes = array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick'); |