function SecureSiteTest::testLoginAnonymousHTML in Secure Site 5
Same name and namespace in other branches
- 6 tests/securesite.test \SecureSiteTest::testLoginAnonymousHTML()
Check that anonymous users get the correct headers when using the HTML login form
File
- tests/
securesite.test, line 82 - Secure Site module unit tests
Class
- SecureSiteTest
- Unit tests for the Secure Site module
Code
function testLoginAnonymousHTML() {
$this
->drupalVariableSet('securesite_enabled', SECURESITE_FORM);
$this
->drupalVariableSet('securesite_filter_pages_type', SECURESITE_WHITELIST);
$this
->drupalVariableSet('securesite_filter_pages', '');
$this
->drupalGet(url(NULL, NULL, NULL, TRUE));
$this
->assertResponse('200', t('Login: Anonymous HTML form') . ': %s');
$this
->assertNoAuthentication();
$this
->assertWantedRaw('<h1>Login</h1>');
}