mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix a unit test after [31721].
props jipmoors. see #22329. git-svn-id: https://develop.svn.wordpress.org/trunk@31728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -158,7 +158,7 @@ class Tests_Avatar extends WP_UnitTestCase {
|
||||
|
||||
public function test_get_avatar() {
|
||||
$img = get_avatar( 1 );
|
||||
$this->assertEquals( preg_match( "|^<img alt='[^']*' src='[^']*' class='[^']*' height='[^']*' width='[^']*' />$|", $img ), 1 );
|
||||
$this->assertEquals( preg_match( "|^<img alt='[^']*' src='[^']*' srcset='[^']*' class='[^']*' height='[^']*' width='[^']*' />$|", $img ), 1 );
|
||||
}
|
||||
|
||||
public function test_get_avatar_size() {
|
||||
|
||||
Reference in New Issue
Block a user