You are here

public function SecureSiteTypeBasicGuestUnsetFunctionalTest::testSecureSiteTypeBasicGuestUnsetRandomAccess in Secure Site 7.2

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

Request home page with random credentials and access enabled.

File

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

Class

SecureSiteTypeBasicGuestUnsetFunctionalTest
Functional tests for basic authentication with guest credentials unset.

Code

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