diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-07 06:07:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-07 06:07:19 +0000 |
commit | b52cdd773c10df895f306f4956e8b8294d875c0f (patch) | |
tree | 9a5f2e8cf4033c03db179c55f74c390a13363d65 /modules/simpletest/tests/session.test | |
parent | 778ec56c7b2e30b97671b4f5090c7832ed41649d (diff) | |
download | brdo-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/simpletest/tests/session.test')
-rw-r--r-- | modules/simpletest/tests/session.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/simpletest/tests/session.test b/modules/simpletest/tests/session.test index 379b82733..640431487 100644 --- a/modules/simpletest/tests/session.test +++ b/modules/simpletest/tests/session.test @@ -309,12 +309,14 @@ class SessionHttpsTestCase extends DrupalWebTestCase { $this->curlClose(); $this->drupalGet($this->httpsUrl('admin'), array(), array('Cookie: ' . $cookie)); $this->assertText(t('Administer')); + $this->assertNoResponse(403); // Verify that user is not logged in on non-secure URL. if (!$is_https) { $this->curlClose(); $this->drupalGet('admin', array(), array('Cookie: ' . $cookie)); $this->assertNoText(t('Administer')); + $this->assertResponse(403); } // Clear browser cookie jar. @@ -373,9 +375,11 @@ class SessionHttpsTestCase extends DrupalWebTestCase { $this->drupalGet($url, array(), array('Cookie: ' . $cookie)); if ($cookie_key == $url_key) { $this->assertText(t('Administer')); + $this->assertNoResponse(403); } else { $this->assertNoText(t('Administer')); + $this->assertResponse(403); } } } |