You are here

function SecureSiteForceAlwaysTest::setUp in Secure Site 8

Implements setUp().

Overrides WebTestBase::setUp

File

src/Tests/ForcedAuth/SecureSiteForceAlwaysTest.php, line 38
Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteForceAlwaysTest

Class

SecureSiteForceAlwaysTest
Functional tests for page requests with authentication always forced.

Namespace

Drupal\securesite\Tests\ForcedAuth

Code

function setUp() {
  parent::setUp();
  $this->user = $this
    ->drupalCreateUser();
  user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array(
    'access secured pages',
  ));
  \Drupal::config('securesite.settings')
    ->set('securesite_enabled', SECURESITE_ALWAYS);
}