diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-10 06:04:24 -0500 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-10 06:04:24 -0500 |
| commit | 3c542b852a99f62337c8cf1c6d3e6551c4e3dca1 (patch) | |
| tree | ff97ac0990809dcf22657da4285516d086a06aa0 /tests/functional/auth_test.php | |
| parent | b5f94a14f1a5c77366f824780f1120a1b5e9184a (diff) | |
| parent | ff993ba9d30f5de49e5231647c5bb76d95c357f8 (diff) | |
| download | forums-3c542b852a99f62337c8cf1c6d3e6551c4e3dca1.tar forums-3c542b852a99f62337c8cf1c6d3e6551c4e3dca1.tar.gz forums-3c542b852a99f62337c8cf1c6d3e6551c4e3dca1.tar.bz2 forums-3c542b852a99f62337c8cf1c6d3e6551c4e3dca1.tar.xz forums-3c542b852a99f62337c8cf1c6d3e6551c4e3dca1.zip | |
Merge PR #1125 branch 'p/ticket/10972' into develop-olympus
* p/ticket/10972:
[ticket/10972] Drop user deletion.
[ticket/10972] Tweak user addition.
[ticket/10972] Add destroy method to mock cache.
[ticket/10972] Add mock null cache.
[ticket/10972] Backport get_db from develop.
[ticket/10972] Added explicit checks for creating duplicate users.
[ticket/10972] Moved tests into appropriate places and added comments
[ticket/10972] Added methods for creating and deleting basic users
Diffstat (limited to 'tests/functional/auth_test.php')
| -rw-r--r-- | tests/functional/auth_test.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/auth_test.php b/tests/functional/auth_test.php index e955dcb4df..662b1bd38b 100644 --- a/tests/functional/auth_test.php +++ b/tests/functional/auth_test.php @@ -18,9 +18,19 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case // check for logout link $crawler = $this->request('GET', 'index.php'); + $this->assert_response_success(); $this->assertContains($this->lang('LOGOUT_USER', 'admin'), $crawler->filter('.navbar')->text()); } + public function test_login_other() + { + $this->create_user('anothertestuser'); + $this->login('anothertestuser'); + $crawler = $this->request('GET', 'index.php'); + $this->assert_response_success(); + $this->assertContains('anothertestuser', $crawler->filter('.icon-logout')->text()); + } + /** * @depends test_login */ @@ -31,10 +41,12 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case // logout $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()); // look for a register link, which should be visible only when logged out $crawler = $this->request('GET', 'index.php'); + $this->assert_response_success(); $this->assertContains($this->lang('REGISTER'), $crawler->filter('.navbar')->text()); } } |
