From b52cdd773c10df895f306f4956e8b8294d875c0f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 7 Dec 2009 06:07:19 +0000 Subject: #652420 by sun: Fixed Various failures everywhere caught by asserting on watchdog errors found in testing logs. --- modules/path/path.test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/path') diff --git a/modules/path/path.test b/modules/path/path.test index 43a9d778a..adf6c3e34 100644 --- a/modules/path/path.test +++ b/modules/path/path.test @@ -64,6 +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); // Change alias. $pid = $this->getPID($edit['alias']); @@ -75,6 +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); drupal_static_reset('drupal_lookup_path'); // Confirm that previous alias no longer works. @@ -99,6 +101,7 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias no longer works. $this->drupalGet($edit['alias']); $this->assertNoText($node1->title, 'Alias was successfully deleted.'); + $this->assertResponse(404); } /** @@ -116,6 +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); // Change alias. $previous = $edit['path[alias]']; @@ -125,6 +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); // Make sure that previous alias no longer works. $this->drupalGet($previous); @@ -147,6 +152,7 @@ class PathTestCase extends DrupalWebTestCase { // Confirm that the alias no longer works. $this->drupalGet($edit['path[alias]']); $this->assertNoText($node1->title, 'Alias was successfully deleted.'); + $this->assertResponse(404); } function getPID($alias) { -- cgit v1.2.3