You are here

function SecureSiteForce403Test::testSecureSiteForce403Restricted in Secure Site 8

Request admin page.

File

src/Tests/ForcedAuth/SecureSiteForce403Test.php, line 59
Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteForce403Test

Class

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

Namespace

Drupal\securesite\Tests\ForcedAuth

Code

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