You are here

function SecureSiteForce403FunctionalTest::testSecureSiteForce403User in Secure Site 6.2

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

Request admin page for non-admin user.

File

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

Class

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

Code

function testSecureSiteForce403User() {
  $this
    ->drupalLogin($this
    ->drupalCreateUser());
  $this
    ->drupalHead('admin');
  $this
    ->assertResponse(403, t('Requesting admin page for non-admin user.'));
}