You are here

function SecureSiteForce403Test::setUp in Secure Site 8

Implements setUp().

Overrides WebTestBase::setUp

File

src/Tests/ForcedAuth/SecureSiteForce403Test.php, line 38
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 setUp() {
  parent::setUp('securesite');
  $config_securesite = \Drupal::config('securesite.settings');
  $config_site = \Drupal::config('system.site');
  $config_securesite
    ->set('securesite_enabled', SECURESITE_403);
  $config_securesite
    ->set('securesite_403', $config_site
    ->get('page.403', ''));
  $config_securesite
    ->save();
  $config_site
    ->set('page.403', 'securesite_403')
    ->save();
}