[ticket/229] Test if legend contains more than just Administrators

B3P-229
This commit is contained in:
Marc Alexander
2014-04-06 01:26:36 +02:00
parent 2ea6bfa6fb
commit 85ea218545

View File

@@ -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);
}
}