mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@41784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef701b01e9
commit
3c72ff101f
@ -266,10 +266,10 @@ class Tests_Image_Functions extends WP_UnitTestCase {
|
||||
|
||||
// First, test with deprecated wp_load_image function
|
||||
$editor1 = wp_load_image( DIR_TESTDATA );
|
||||
$this->assertNotInternalType( 'resource', $editor1 );
|
||||
$this->assertInternalType( 'string', $editor1 );
|
||||
|
||||
$editor2 = wp_get_image_editor( DIR_TESTDATA );
|
||||
$this->assertNotInternalType( 'resource', $editor2 );
|
||||
$this->assertWPError( $editor2 );
|
||||
|
||||
// Then, test with editors.
|
||||
$classes = array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user