function SecureSiteForce403Test::testSecureSiteForce403User in Secure Site 8
Request admin page for non-admin user.
File
- src/
Tests/ ForcedAuth/ SecureSiteForce403Test.php, line 67 - Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteForce403Test
Class
- SecureSiteForce403Test
- Functional tests for page requests with authentication forced on restricted pages.
Namespace
Drupal\securesite\Tests\ForcedAuthCode
function testSecureSiteForce403User() {
$this
->drupalLogin($this
->drupalCreateUser());
$this
->drupalHead('admin');
$this
->assertResponse(403, t('Requesting admin page for non-admin user.'));
}