aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-17 13:26:35 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-17 13:26:35 +0100
commita75885bd85d57401904055366c18733ac84b323a (patch)
tree8de5a88471ae972d019691e3bba3c62a62287574 /tests/test_framework
parent620a8622660c5a00f56ce686e397ed09d9cd4039 (diff)
downloadforums-a75885bd85d57401904055366c18733ac84b323a.tar
forums-a75885bd85d57401904055366c18733ac84b323a.tar.gz
forums-a75885bd85d57401904055366c18733ac84b323a.tar.bz2
forums-a75885bd85d57401904055366c18733ac84b323a.tar.xz
forums-a75885bd85d57401904055366c18733ac84b323a.zip
[ticket/14315] Add logout to ui tests and use in permissions role test
PHPBB3-14315
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index f9f4c516e6..7e87b63b97 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -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.