public function SecureSiteForceOfflineFunctionalTest::testSecureSiteForceOfflineMaintenance in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteForceOfflineFunctionalTest::testSecureSiteForceOfflineMaintenance()
Request off-line home page.
File
- ./
securesite.test, line 1089 - Tests for Secure Site module.
Class
- SecureSiteForceOfflineFunctionalTest
- Functional tests for page requests with authentication forced when site is off line.
Code
public function testSecureSiteForceOfflineMaintenance() {
variable_set('site_offline', TRUE);
$this
->drupalHead(NULL);
$this
->assertResponse(401, t('Requesting off-line home page.'));
}