aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/functional/memberlist_test.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functional/memberlist_test.php b/tests/functional/memberlist_test.php
index b3cb7db759..879bee2f0e 100644
--- a/tests/functional/memberlist_test.php
+++ b/tests/functional/memberlist_test.php
@@ -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());
+ }
}