[ticket/11492] Fix the test once more

PHPBB3-11492
This commit is contained in:
Joas Schilling 2013-04-11 16:28:10 +02:00
parent 7f527e8012
commit 4d4cf25edd

View file

@ -58,17 +58,11 @@ class phpbb_functional_memberlist_test extends phpbb_functional_test_case
{
$this->login();
// Remove admin from admins, still a moderator
// Remove admin from admins
$this->remove_user_group('ADMINISTRATORS', array('admin'));
$crawler = $this->request('GET', 'memberlist.php?mode=leaders&sid=' . $this->sid);
$this->assert_response_success();
$this->assertContains('admin', $crawler->text());
// Remove admin from moderators
$this->remove_user_group('GLOBAL_MODERATORS', array('admin'));
$crawler = $this->request('GET', 'memberlist.php?mode=leaders&sid=' . $this->sid);
$this->assert_response_success();
$this->assertNotContains('admin', $crawler->text());
}
public function test_leaders_add_users()