You are here

function SecureSiteBasicGuestUnsetTest::testSecureSiteTypeBasicGuestUnsetRandomAccess in Secure Site 8

Request home page with random credentials and access enabled.

File

src/Tests/BasicAuth/SecureSiteBasicGuestUnsetTest.php, line 79
Contains Drupal\securesite\Tests\BasicAuth\SecureSiteBasicGuestUnsetTest

Class

SecureSiteBasicGuestUnsetTest
Functional tests for basic authentication with guest credentials unset.

Namespace

Drupal\securesite\Tests\BasicAuth

Code

function testSecureSiteTypeBasicGuestUnsetRandomAccess() {
  $this->curl_options[CURLOPT_USERPWD] = $this
    ->randomName() . ':' . user_password();
  $this
    ->drupalGet(NULL);
  $this
    ->assertResponse(200, t('Requesting home page with random credentials and guest access enabled.'));
}