diff --git a/tests/phpunit/tests/general/template.php b/tests/phpunit/tests/general/template.php index b956033482..46a6842251 100644 --- a/tests/phpunit/tests/general/template.php +++ b/tests/phpunit/tests/general/template.php @@ -244,7 +244,10 @@ class Tests_General_Template extends WP_UnitTestCase { the_custom_logo(); $this->_set_custom_logo(); - $this->expectOutputString( '' ); + $size = get_theme_support( 'custom-logo', 'size' ); + $expected = sprintf( '', $this->custom_logo_url, $size, basename( $this->custom_logo_url ) ); + + $this->expectOutputString( $expected ); the_custom_logo(); }