diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-04-25 22:52:40 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-04-25 22:52:40 +0530 |
commit | 2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67 (patch) | |
tree | 9f2af425a06642892c5075c3a3a5d2e7397d2b45 /tests | |
parent | d242b7a1a5c9b6ecc8bc21027a33bc344501a0ce (diff) | |
download | forums-2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67.tar forums-2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67.tar.gz forums-2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67.tar.bz2 forums-2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67.tar.xz forums-2fa5f9591e06e82ca76e7ac7e653d8ad4494eb67.zip |
[ticket/10325] add logout function in functional_test_case
PHPBB3-10325
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 5534de89c9..dae37f336d 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -425,6 +425,17 @@ class phpbb_functional_test_case extends phpbb_test_case } } + protected function logout() + { + $this->add_lang('ucp'); + + $crawler = $this->request('GET', 'ucp.php?sid=' . $this->sid . '&mode=logout'); + $this->assert_response_success(); + $this->assertContains($this->lang('LOGOUT_REDIRECT'), $crawler->filter('#message')->text()); + unset($this->sid); + + } + /** * Login to the ACP * You must run login() before calling this. |