From 3016bcbd235b75e60a44566368c2d3702a625174 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 9 Dec 2009 19:22:04 +0000 Subject: - Patch #652420 by sun: fixed some errors. --- modules/path/path.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/path') 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); -- cgit v1.2.3