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/simpletest/tests/session.test | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/simpletest/tests/session.test') 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); } } } -- cgit v1.2.3