Make WordPress Core


Ignore:
Timestamp:
03/09/2016 09:56:57 PM (9 years ago)
Author:
obenland
Message:

Tests: Account for expected attachemnt size in custom logo output.

Fixes #36086.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/general/template.php

    r36905 r36911  
    245245
    246246        $this->_set_custom_logo();
    247         $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>' );
     247        $size     = get_theme_support( 'custom-logo', 'size' );
     248        $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 ) );
     249
     250        $this->expectOutputString( $expected );
    248251        the_custom_logo();
    249252    }
Note: See TracChangeset for help on using the changeset viewer.