function SecureSiteTest::testLoginAnonymousDisabled in Secure Site 5
Same name and namespace in other branches
- 6 tests/securesite.test \SecureSiteTest::testLoginAnonymousDisabled()
Check that anonymous users get the correct headers when Secure Site is disabled
File
- tests/
securesite.test, line 96 - Secure Site module unit tests
Class
- SecureSiteTest
- Unit tests for the Secure Site module
Code
function testLoginAnonymousDisabled() {
$this
->drupalVariableSet('securesite_enabled', SECURESITE_DISABLED);
$this
->drupalGet(url(NULL, NULL, NULL, TRUE));
$this
->assertResponse('200', t('Login: Disabled') . ': %s');
$this
->assertNoAuthentication();
}