1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/14315] Add logout to ui tests and use in permissions role test

PHPBB3-14315
This commit is contained in:
Marc Alexander
2016-02-17 13:26:35 +01:00
parent 620a862266
commit a75885bd85
2 changed files with 11 additions and 0 deletions

View File

@@ -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.