Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3016bcbd
Commit
3016bcbd
authored
Dec 09, 2009
by
Dries Buytaert
Browse files
- Patch
#652420
by sun: fixed some errors.
parent
11cbc6ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/path/path.test
View file @
3016bcbd
...
...
@@ -64,7 +64,7 @@ class PathTestCase extends DrupalWebTestCase {
// Confirm that the alias works.
$this
->
drupalGet
(
$edit
[
'alias'
]);
$this
->
assertText
(
$node1
->
title
[
LANGUAGE_NONE
][
0
][
'value'
],
'Alias works.'
);
$this
->
assert
No
Response
(
404
);
$this
->
assertResponse
(
200
);
// Change alias.
$pid
=
$this
->
getPID
(
$edit
[
'alias'
]);
...
...
@@ -76,7 +76,7 @@ class PathTestCase extends DrupalWebTestCase {
// Confirm that the alias works.
$this
->
drupalGet
(
$edit
[
'alias'
]);
$this
->
assertText
(
$node1
->
title
[
LANGUAGE_NONE
][
0
][
'value'
],
'Changed alias works.'
);
$this
->
assert
No
Response
(
404
);
$this
->
assertResponse
(
200
);
drupal_static_reset
(
'drupal_lookup_path'
);
// Confirm that previous alias no longer works.
...
...
@@ -119,7 +119,7 @@ class PathTestCase extends DrupalWebTestCase {
// Confirm that the alias works.
$this
->
drupalGet
(
$edit
[
'path[alias]'
]);
$this
->
assertText
(
$node1
->
title
[
LANGUAGE_NONE
][
0
][
'value'
],
'Alias works.'
);
$this
->
assert
No
Response
(
404
);
$this
->
assertResponse
(
200
);
// Change alias.
$previous
=
$edit
[
'path[alias]'
];
...
...
@@ -129,7 +129,7 @@ class PathTestCase extends DrupalWebTestCase {
// Confirm that the alias works.
$this
->
drupalGet
(
$edit
[
'path[alias]'
]);
$this
->
assertText
(
$node1
->
title
[
LANGUAGE_NONE
][
0
][
'value'
],
'Changed alias works.'
);
$this
->
assert
No
Response
(
404
);
$this
->
assertResponse
(
200
);
// Make sure that previous alias no longer works.
$this
->
drupalGet
(
$previous
);
...
...
modules/search/search.test
View file @
3016bcbd
...
...
@@ -427,7 +427,7 @@ class SearchBlockTestCase extends DrupalWebTestCase {
$this
->
drupalGet
(
'foo'
);
$this
->
assertResponse
(
404
);
$this
->
drupalPost
(
NULL
,
$terms
,
t
(
'Search'
));
$this
->
assert
No
Response
(
404
);
$this
->
assertResponse
(
200
);
$this
->
assertText
(
'Your search yielded no results'
);
// Test a search from the block when it doesn't appear on the search page.
...
...
modules/simpletest/tests/session.test
View file @
3016bcbd
...
...
@@ -309,7 +309,7 @@ class SessionHttpsTestCase extends DrupalWebTestCase {
$this
->
curlClose
();
$this
->
drupalGet
(
$this
->
httpsUrl
(
'admin'
),
array
(),
array
(
'Cookie: '
.
$cookie
));
$this
->
assertText
(
t
(
'Administer'
));
$this
->
assert
No
Response
(
403
);
$this
->
assertResponse
(
200
);
// Verify that user is not logged in on non-secure URL.
if
(
!
$is_https
)
{
...
...
@@ -375,7 +375,7 @@ class SessionHttpsTestCase extends DrupalWebTestCase {
$this
->
drupalGet
(
$url
,
array
(),
array
(
'Cookie: '
.
$cookie
));
if
(
$cookie_key
==
$url_key
)
{
$this
->
assertText
(
t
(
'Administer'
));
$this
->
assert
No
Response
(
403
);
$this
->
assertResponse
(
200
);
}
else
{
$this
->
assertNoText
(
t
(
'Administer'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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