function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysGuest in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysGuest()
Request home page for logged in guest.
File
- ./
securesite.test, line 952 - Tests for Secure Site module.
Class
- SecureSiteForceAlwaysFunctionalTest
- Functional tests for page requests with authentication always forced.
Code
function testSecureSiteForceAlwaysGuest() {
$this->curl_options[CURLOPT_USERPWD] = ':';
$this
->drupalHead(NULL);
unset($this->curl_options[CURLOPT_USERPWD]);
$this
->curlClose();
$this->curl_options[CURLOPT_COOKIE] = $this
->drupalGetHeader('Set-Cookie');
$this
->drupalHead(NULL);
$this
->assertResponse(200, t('Requesting home page for logged-in guest.'));
}