Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b09aa24a
Commit
b09aa24a
authored
Jul 31, 2009
by
Dries
Browse files
- Patch by chx and DamZ: fixed a failing test.
parent
4bf17d30
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.test
View file @
b09aa24a
...
...
@@ -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
->
assert
No
Text
(
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
->
drupal
Logout
(
);
$this
->
drupalPost
(
'filter/tips'
,
$edit
,
t
(
'Log in'
));
$this
->
assertText
(
t
(
'
Log out
'
),
t
(
'Logged in.'
));
$this
->
assert
No
Text
(
t
(
'
User login
'
),
t
(
'Logged in.'
));
$this
->
assertPattern
(
'!<title.*?'
.
t
(
'Compose tips'
)
.
'.*?</title>!'
,
t
(
'Still on the same page after login for allowed page'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment