You are here

function SecureSiteFormGuestTest::setUp in Secure Site 8

Implements setUp().

Overrides WebTestBase::setUp

File

src/Tests/FormAuth/SecureSiteFormGuestTest.php, line 38
Contains Drupal\securesite\Tests\FormAuth\SecureSiteFormGuestTest

Class

SecureSiteFormGuestTest
Functional tests for form authentication with guest credentials.

Namespace

Drupal\securesite\Tests\FormAuth

Code

function setUp() {
  parent::setUp();
  $config = \Drupal::config('securesite.settings');
  $config
    ->set('securesite_enabled', SECURESITE_ALWAYS);

  // Should work with all authentication methods enabled.
  $config
    ->set('securesite_type', array(
    SECURESITE_FORM,
    SECURESITE_BASIC,
    SECURESITE_DIGEST,
  ));
  $config
    ->save();
}