You are here

public function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysUser in Secure Site 7.2

Same name and namespace in other branches
  1. 6.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysUser()

Request home page for logged in user.

File

./securesite.test, line 973
Tests for Secure Site module.

Class

SecureSiteForceAlwaysFunctionalTest
Functional tests for page requests with authentication always forced.

Code

public function testSecureSiteForceAlwaysUser() {
  variable_del('securesite_enabled');
  $this
    ->drupalLogin($this->user);
  variable_set('securesite_enabled', SECURESITE_ALWAYS);
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(200, t('Requesting home page for logged-in user.'));
}