mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11531] Check if uploaded avatar is properly displayed in tests
PHPBB3-11531
This commit is contained in:
parent
e48f0555e9
commit
2eb32ef515
1 changed files with 16 additions and 0 deletions
|
@ -59,4 +59,20 @@ class phpbb_functional_avatar_ucp_users_test extends phpbb_functional_common_ava
|
||||||
{
|
{
|
||||||
$this->assert_avatar_submit($expected, $avatar_type, $data);
|
$this->assert_avatar_submit($expected, $avatar_type, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_display_upload_avatar()
|
||||||
|
{
|
||||||
|
$this->assert_avatar_submit('PROFILE_UPDATED',
|
||||||
|
'avatar_driver_upload',
|
||||||
|
array(
|
||||||
|
'avatar_upload_url' => 'https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0.jpg',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$crawler = self::request('GET', $this->get_url() . '&sid=' . $this->sid);
|
||||||
|
$avatar_link = $crawler->filter('img')->attr('src');
|
||||||
|
$crawler = self::request('GET', $avatar_link . '&sid=' . $this->sid, array(), false);
|
||||||
|
$content = self::$client->getResponse()->getContent();
|
||||||
|
self::assertEquals(false, stripos(trim($content), 'debug'), 'Output contains debug message');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue