You are here

public function SecureSiteTypeDigestGuestSetFunctionalTest::testSecureSiteDigestGuestSetRandom in Secure Site 7.2

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

Request home page with random credentials.

File

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

Class

SecureSiteTypeDigestGuestSetFunctionalTest
Functional tests for digest authentication with guest credentials set.

Code

public function testSecureSiteDigestGuestSetRandom() {
  $this->curl_options[CURLOPT_USERPWD] = $this
    ->randomName() . ':' . user_password();
  $this
    ->drupalHead(NULL);
  $this
    ->assertResponse(401, t('Requesting home page with random credentials.'));
}