You are here

function SecureSiteTypeBasicGuestUnsetFunctionalTest::testSecureSiteTypeBasicGuestUnsetRandomAccess in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteTypeBasicGuestUnsetFunctionalTest::testSecureSiteTypeBasicGuestUnsetRandomAccess()

Request home page with random credentials and access enabled.

File

./securesite.test, line 1363
Tests for Secure Site module.

Class

SecureSiteTypeBasicGuestUnsetFunctionalTest
Functional tests for basic authentication with guest credentials unset.

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.'));
}