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
This commit is contained in:
parent
14d0424513
commit
bf852575e2
|
@ -244,7 +244,10 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||||
the_custom_logo();
|
the_custom_logo();
|
||||||
|
|
||||||
$this->_set_custom_logo();
|
$this->_set_custom_logo();
|
||||||
$this->expectOutputString( '<a href="http://example.org/" class="custom-logo-link" rel="home" itemprop="url"><img width="50" height="50" src="' . $this->custom_logo_url . '" class="custom-logo attachment-" alt="' . basename( $this->custom_logo_url ) . '" data-size="" itemprop="logo" /></a>' );
|
$size = get_theme_support( 'custom-logo', 'size' );
|
||||||
|
$expected = sprintf( '<a href="http://example.org/" class="custom-logo-link" rel="home" itemprop="url"><img width="50" height="50" src="%1$s" class="custom-logo attachment-%2$s" alt="%3$s" data-size="%2$s" itemprop="logo" /></a>', $this->custom_logo_url, $size, basename( $this->custom_logo_url ) );
|
||||||
|
|
||||||
|
$this->expectOutputString( $expected );
|
||||||
the_custom_logo();
|
the_custom_logo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue