mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/14315] Add logout to ui tests and use in permissions role test
PHPBB3-14315
This commit is contained in:
parent
620a862266
commit
a75885bd85
2 changed files with 11 additions and 0 deletions
|
@ -276,6 +276,16 @@ class phpbb_ui_test_case extends phpbb_test_case
|
|||
return self::$db;
|
||||
}
|
||||
|
||||
protected function logout()
|
||||
{
|
||||
$this->add_lang('ucp');
|
||||
|
||||
$this->visit('ucp.php?sid=' . $this->sid . '&mode=logout');
|
||||
$this->assertContains($this->lang('REGISTER'), self::$webDriver->getPageSource());
|
||||
unset($this->sid);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to the ACP
|
||||
* You must run login() before calling this.
|
||||
|
|
|
@ -19,6 +19,7 @@ class ui_permission_roles_test extends phpbb_ui_test_case
|
|||
|
||||
public function test_permission_roles()
|
||||
{
|
||||
$this->logout();
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->add_lang('acp/permissions');
|
||||
|
|
Loading…
Add table
Reference in a new issue