From bf852575e2270623b48445e4cfb9c4101e870d7d Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 9 Mar 2016 21:56:57 +0000 Subject: [PATCH] Tests: Account for expected attachemnt size in custom logo output. Fixes #36086. git-svn-id: https://develop.svn.wordpress.org/trunk@36911 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/general/template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }