Make WordPress Core

Ticket #42124: 42124.diff

File 42124.diff, 769 bytes (added by joemcgill, 8 years ago)
  • tests/phpunit/tests/image/functions.php

    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 { 
    266266
    267267                // First, test with deprecated wp_load_image function
    268268                $editor1 = wp_load_image( DIR_TESTDATA );
    269                 $this->assertNotInternalType( 'resource', $editor1 );
     269                $this->assertInternalType( 'string', $editor1 );
    270270
    271271                $editor2 = wp_get_image_editor( DIR_TESTDATA );
    272                 $this->assertNotInternalType( 'resource', $editor2 );
     272                $this->assertInstanceOf( 'WP_Error', $editor2 );
    273273
    274274                // Then, test with editors.
    275275                $classes = array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');