summaryrefslogtreecommitdiff
path: root/modules/user/user.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-31 21:14:01 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-31 21:14:01 +0000
commitb09aa24a0ee5c27568ce558182d40a3dc6373b41 (patch)
treeab0fed082f1e7ad84d0b9448ed580067d6488f7d /modules/user/user.test
parent4bf17d30d3f70f960d140f623e5d6969bbc35356 (diff)
downloadbrdo-b09aa24a0ee5c27568ce558182d40a3dc6373b41.tar.gz
brdo-b09aa24a0ee5c27568ce558182d40a3dc6373b41.tar.bz2
- Patch by chx and DamZ: fixed a failing test.
Diffstat (limited to 'modules/user/user.test')
-rw-r--r--modules/user/user.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index bed823f9b..82d0bcf5f 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -962,15 +962,15 @@ class UserBlocksUnitTests extends DrupalWebTestCase {
$edit['name'] = $user->name;
$edit['pass'] = $user->pass_raw;
$this->drupalPost('admin/settings/permissions', $edit, t('Log in'));
- $this->assertText(t('Log out'), t('Logged in.'));
+ $this->assertNoText(t('User login'), t('Logged in.'));
// Check that we are still on the same page.
$this->assertPattern('!<title.*?' . t('Permissions') . '.*?</title>!', t('Still on the same page after login for access denied page'));
// Now, log out and repeat with a non-403 page.
- $this->clickLink(t('Log out'));
+ $this->drupalLogout();
$this->drupalPost('filter/tips', $edit, t('Log in'));
- $this->assertText(t('Log out'), t('Logged in.'));
+ $this->assertNoText(t('User login'), t('Logged in.'));
$this->assertPattern('!<title.*?' . t('Compose tips') . '.*?</title>!', t('Still on the same page after login for allowed page'));
}