You are here

function SecureSiteTest::testLoginAnonymousDisabled in Secure Site 6

Same name and namespace in other branches
  1. 5 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, array(
    'absolute' => TRUE,
  )));
  $this
    ->assertResponse('200', t('Login: Disabled') . ': %s');
  $this
    ->assertNoAuthentication();
}