summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-09 19:22:04 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-09 19:22:04 +0000
commit3016bcbd235b75e60a44566368c2d3702a625174 (patch)
treee47c85fde9bf47662d5c9a3f46cdac4578038ecd /modules/path
parent11cbc6ab2c6d915f819e1f43a29f8b862ffa6154 (diff)
downloadbrdo-3016bcbd235b75e60a44566368c2d3702a625174.tar.gz
brdo-3016bcbd235b75e60a44566368c2d3702a625174.tar.bz2
- Patch #652420 by sun: fixed some errors.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/path/path.test b/modules/path/path.test
index adf6c3e34..2cbb9a99f 100644
--- a/modules/path/path.test
+++ b/modules/path/path.test
@@ -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->assertNoResponse(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->assertNoResponse(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->assertNoResponse(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->assertNoResponse(404);
+ $this->assertResponse(200);
// Make sure that previous alias no longer works.
$this->drupalGet($previous);