You are here

function SecureSiteDigestGuestSetTest::tearDown in Secure Site 8

Implements tearDown().

Overrides WebTestBase::tearDown

File

src/Tests/DigestAuth/SecureSiteDigestGuestSetTest.php, line 94
Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestGuestSetTest

Class

SecureSiteDigestGuestSetTest
Functional tests for digest authentication with guest credentials set.

Namespace

Drupal\securesite\Tests\DigestAuth

Code

function tearDown() {
  $this->curl_options[CURLOPT_USERPWD] = $this->user->name . ':' . $this->user->pass_raw;
  $this
    ->drupalPost('admin/config/securesite', array(), 'Reset to defaults');
  _securesite_copy_script_config($this);
  \Drupal::config('securesite.settings')
    ->set('securesite_type', array(
    SECURESITE_DIGEST,
  ))
    ->save();
  user_cancel(array(), $this->user->uid, $method = 'user_cancel_delete');
  parent::tearDown();
}