You are here

protected function SecureLoginTestBase::setUp in Secure Login 8

Overrides BrowserTestBase::setUp

2 calls to SecureLoginTestBase::setUp()
SecureLoginTestBlock::setUp in tests/src/Functional/SecureLoginTestBlock.php
SecureLoginTestConfig::setUp in tests/src/Functional/SecureLoginTestConfig.php
Overrides WebTestBase::setUp().
2 methods override SecureLoginTestBase::setUp()
SecureLoginTestBlock::setUp in tests/src/Functional/SecureLoginTestBlock.php
SecureLoginTestConfig::setUp in tests/src/Functional/SecureLoginTestConfig.php
Overrides WebTestBase::setUp().

File

tests/src/Functional/SecureLoginTestBase.php, line 37

Class

SecureLoginTestBase
Base class for Secure login module tests.

Namespace

Drupal\Tests\securelogin\Functional

Code

protected function setUp() {
  parent::setUp();
  if ($this->enableSecureLogin) {
    $this->container
      ->get('module_installer')
      ->install([
      'securelogin',
    ]);
    $this
      ->rebuildContainer();
  }
  $this->isSecure = Request::createFromGlobals()
    ->isSecure();
}