diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-09 19:22:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-09 19:22:04 +0000 |
commit | 3016bcbd235b75e60a44566368c2d3702a625174 (patch) | |
tree | e47c85fde9bf47662d5c9a3f46cdac4578038ecd | |
parent | 11cbc6ab2c6d915f819e1f43a29f8b862ffa6154 (diff) | |
download | brdo-3016bcbd235b75e60a44566368c2d3702a625174.tar.gz brdo-3016bcbd235b75e60a44566368c2d3702a625174.tar.bz2 |
- Patch #652420 by sun: fixed some errors.
-rw-r--r-- | modules/path/path.test | 8 | ||||
-rw-r--r-- | modules/search/search.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/session.test | 4 |
3 files changed, 7 insertions, 7 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); diff --git a/modules/search/search.test b/modules/search/search.test index de7b454e2..035b7645d 100644 --- a/modules/search/search.test +++ b/modules/search/search.test @@ -427,7 +427,7 @@ class SearchBlockTestCase extends DrupalWebTestCase { $this->drupalGet('foo'); $this->assertResponse(404); $this->drupalPost(NULL, $terms, t('Search')); - $this->assertNoResponse(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. diff --git a/modules/simpletest/tests/session.test b/modules/simpletest/tests/session.test index 640431487..70bf70565 100644 --- a/modules/simpletest/tests/session.test +++ b/modules/simpletest/tests/session.test @@ -309,7 +309,7 @@ class SessionHttpsTestCase extends DrupalWebTestCase { $this->curlClose(); $this->drupalGet($this->httpsUrl('admin'), array(), array('Cookie: ' . $cookie)); $this->assertText(t('Administer')); - $this->assertNoResponse(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->assertNoResponse(403); + $this->assertResponse(200); } else { $this->assertNoText(t('Administer')); |