Skip to content

Commit 1577e4f

Browse files
Return valid string, dirname null is not allowed
1 parent 236d9c1 commit 1577e4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/helpers/wordpress.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public function call( $method, $args ) {
115115
return array_merge( array( 'thumbnail', 'medium', 'medium_large', 'large' ), array_keys( $GLOBALS['_wp_additional_image_sizes'] ) );
116116
} elseif ( 'get_plugin_data' === $method ) {
117117
return array( 'Version' => '1.7.2' );
118+
} elseif ( 'plugin_basename' === $method ) {
119+
return 'tiny-compress-images';
118120
} elseif ( 'wp_upload_dir' === $method ) {
119121
return array( 'basedir' => $this->vfs->url() . '/' . self::UPLOAD_DIR, 'baseurl' => '/' . self::UPLOAD_DIR );
120122
} elseif ( 'is_admin' === $method ) {

0 commit comments

Comments
 (0)