summaryrefslogtreecommitdiff
path: root/modules/path
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-07 06:07:19 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-07 06:07:19 +0000
commitb52cdd773c10df895f306f4956e8b8294d875c0f (patch)
tree9a5f2e8cf4033c03db179c55f74c390a13363d65 /modules/path
parent778ec56c7b2e30b97671b4f5090c7832ed41649d (diff)
downloadbrdo-b52cdd773c10df895f306f4956e8b8294d875c0f.tar.gz
brdo-b52cdd773c10df895f306f4956e8b8294d875c0f.tar.bz2
#652420 by sun: Fixed Various failures everywhere caught by asserting on watchdog errors found in testing logs.
Diffstat (limited to 'modules/path')
-rw-r--r--modules/path/path.test6
1 files changed, 6 insertions, 0 deletions
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) {