function SecureSiteBasicGuestUnsetTest::testSecureSiteTypeBasicGuestUnsetChange in Secure Site 8
Request home page with credentials for new user.
File
- src/
Tests/ BasicAuth/ SecureSiteBasicGuestUnsetTest.php, line 88 - Contains Drupal\securesite\Tests\BasicAuth\SecureSiteBasicGuestUnsetTest
Class
- SecureSiteBasicGuestUnsetTest
- Functional tests for basic authentication with guest credentials unset.
Namespace
Drupal\securesite\Tests\BasicAuthCode
function testSecureSiteTypeBasicGuestUnsetChange() {
$user = $this
->drupalCreateUser();
$this
->drupalHead(NULL);
$this->curl_options[CURLOPT_USERPWD] = "{$user->name}:{$user->pass_raw}";
$this
->drupalHead(NULL);
$this
->assertResponse(403, t('Requesting home page with new user credentials.'));
}