WordPress.org

Make WordPress Core

Changeset 31728


Ignore:
Timestamp:
03/11/2015 08:11:38 PM (5 years ago)
Author:
helen
Message:

Fix a unit test after [31721].

props jipmoors.
see #22329.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/avatar.php

    r31153 r31728  
    159159    public function test_get_avatar() {
    160160        $img = get_avatar( 1 );
    161         $this->assertEquals( preg_match( "|^<img alt='[^']*' src='[^']*' class='[^']*' height='[^']*' width='[^']*' />$|", $img ), 1 );
     161        $this->assertEquals( preg_match( "|^<img alt='[^']*' src='[^']*' srcset='[^']*' class='[^']*' height='[^']*' width='[^']*' />$|", $img ), 1 );
    162162    }
    163163
Note: See TracChangeset for help on using the changeset viewer.