mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10975] Add a test for viewing a profile.
PHPBB3-10975
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
class phpbb_functional_memberlist_test extends phpbb_functional_test_case
|
||||
{
|
||||
public function test_view()
|
||||
public function test_memberlist()
|
||||
{
|
||||
$this->create_user('memberlist-test-user');
|
||||
// logs in as admin
|
||||
@@ -31,4 +31,13 @@ class phpbb_functional_memberlist_test extends phpbb_functional_test_case
|
||||
$this->assert_response_success();
|
||||
$this->assertNotContains('memberlist-test-user', $crawler->text());
|
||||
}
|
||||
|
||||
public function test_viewprofile()
|
||||
{
|
||||
$this->login();
|
||||
// XXX hardcoded user id
|
||||
$crawler = $this->request('GET', 'memberlist.php?mode=viewprofile&u=2&sid=' . $this->sid);
|
||||
$this->assert_response_success();
|
||||
$this->assertContains('admin', $crawler->filter('h2')->text());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user