You are here

function SecureSiteForceOfflineFunctionalTest::testSecureSiteForceOfflineMaintenance in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteForceOfflineFunctionalTest::testSecureSiteForceOfflineMaintenance()

Request off-line home page.

File

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

Class

SecureSiteForceOfflineFunctionalTest
Functional tests for page requests with authentication forced when site is off line.

Code

function testSecureSiteForceOfflineMaintenance() {
  variable_set('site_offline', TRUE);
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(401, t('Requesting off-line home page.'));
}