Make WordPress Core

Changeset 41784


Ignore:
Timestamp:
10/06/2017 06:21:16 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: In Tests_Image_Functions::test_load_directory(), check the expected internal type instead of using assertNotInternalType(), which causes an error with PHPUnit 6.4.0.

Props joemcgill.
Fixes #42124.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r41279 r41784  
    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->assertWPError( $editor2 );
    273273
    274274        // Then, test with editors.
Note: See TracChangeset for help on using the changeset viewer.