[ticket/229] Test if legend contains more than just Administrators
B3P-229
This commit is contained in:
@@ -97,4 +97,13 @@ class phpbb_functional_portal_visit_registered_test extends \board3\portal\tests
|
||||
$this->logout();
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
}
|
||||
|
||||
public function test_whois_online_legend()
|
||||
{
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
|
||||
$legend = $crawler->filter('dd.portal-responsive-show p em')->text();
|
||||
$this->assertContains('Administrators', $legend);
|
||||
$this->assertContains('Global moderators', $legend);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user