aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-07 19:42:18 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-07 19:42:18 +0200
commit708db0f05c3d2277df005f295a229d3b2785d95f (patch)
tree8e44dca6e2038feb28971e1e64f5dba7280ac025 /tests/functional
parent3315702b5f2feacbc703f5dcee5944f89cf2d407 (diff)
downloadforums-708db0f05c3d2277df005f295a229d3b2785d95f.tar
forums-708db0f05c3d2277df005f295a229d3b2785d95f.tar.gz
forums-708db0f05c3d2277df005f295a229d3b2785d95f.tar.bz2
forums-708db0f05c3d2277df005f295a229d3b2785d95f.tar.xz
forums-708db0f05c3d2277df005f295a229d3b2785d95f.zip
[ticket/12370] Fix functional notification test and remove unneeded requests
PHPBB3-12370
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/notification_test.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/functional/notification_test.php b/tests/functional/notification_test.php
index 9ae37842fe..18e8a4ecc0 100644
--- a/tests/functional/notification_test.php
+++ b/tests/functional/notification_test.php
@@ -59,20 +59,17 @@ class phpbb_functional_notification_test extends phpbb_functional_test_case
$this->create_user('notificationtestuser');
$this->add_user_group('NEWLY_REGISTERED', array('notificationtestuser'));
$this->login('notificationtestuser');
- $crawler = self::request('GET', 'index.php');
- $this->assertContains('notificationtestuser', $crawler->filter('#username_logged_in')->text());
// Post a new post that needs approval
$this->create_post(2, 1, 'Re: Welcome to phpBB3', 'This is a test [b]post[/b] posted by notificationtestuser.', array(), 'POST_STORED_MOD');
$crawler = self::request('GET', "viewtopic.php?t=1&sid={$this->sid}");
$this->assertNotContains('This is a test post posted by notificationtestuser.', $crawler->filter('html')->text());
- // logout
- $crawler = self::request('GET', 'ucp.php?sid=' . $this->sid . '&mode=logout');
-
- // admin login
+ // Login as admin
+ $this->logout();
$this->login();
$this->add_lang('ucp');
+
$crawler = self::request('GET', 'ucp.php?i=ucp_notifications');
// At least one notification should exist