You are here

function SecureSiteForce403FunctionalTest::testSecureSiteForce403Restricted in Secure Site 6.2

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

Request admin page.

File

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

Class

SecureSiteForce403FunctionalTest
Functional tests for page requests with authentication forced on restricted pages.

Code

function testSecureSiteForce403Restricted() {
  $this
    ->drupalHead('admin');
  $this
    ->assertResponse(401, t('Requesting admin page.'));
}