You are here

public function SecureSiteForce403FunctionalTest::testSecureSiteForce403User in Secure Site 7.2

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

Request admin page for non-admin user.

File

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

Class

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

Code

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