function SecureSiteDigestUserStoredTest::testSecureSiteTypeDigestUserStoredWrong in Secure Site 8
Request home page with wrong password.
File
- src/
Tests/ DigestAuth/ SecureSiteDigestUserStoredTest.php, line 56 - Contains Drupal\securesite\Tests\DigestAuth\SecureSiteDigestUserStoredTest
Class
- SecureSiteDigestUserStoredTest
- Functional tests for digest authentication with user credentials.
Namespace
Drupal\securesite\Tests\DigestAuthCode
function testSecureSiteTypeDigestUserStoredWrong() {
$this->curl_options[CURLOPT_USERPWD] = $this->user->name . ':' . $this->user->pass;
$this
->drupalHead(NULL);
$this
->assertResponse(401, t('Requesting home page with wrong password.'));
}