Ticket #22329: 22329-test_get_avatar_fix.diff
| File 22329-test_get_avatar_fix.diff, 621 bytes (added by , 11 years ago) |
|---|
-
tests/phpunit/tests/avatar.php
158 158 159 159 public function test_get_avatar() { 160 160 $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 ); 162 162 } 163 163 164 164 public function test_get_avatar_size() {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)