You are here

function SecureSiteDigestNoneTest::setUp in Secure Site 8

Implements setUp().

Overrides WebTestBase::setUp

File

src/Tests/DigestAuth/SecureSiteDigestNoneTest.php, line 36
Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestNoneTest

Class

SecureSiteDigestNoneTest
Functional test for digest authentication without credentials.

Namespace

Drupal\securesite\Tests\DigestAuth

Code

function setUp() {
  parent::setUp();

  //todo wtf is this function
  _securesite_copy_script_config($this);
  $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();
}