function SecureSiteTypeBasicGuestUnsetFunctionalTest::testSecureSiteTypeBasicGuestUnsetChange in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteTypeBasicGuestUnsetFunctionalTest::testSecureSiteTypeBasicGuestUnsetChange()
Request home page with credentials for new user.
File
- ./
securesite.test, line 1372 - Tests for Secure Site module.
Class
- SecureSiteTypeBasicGuestUnsetFunctionalTest
- Functional tests for basic authentication with guest credentials unset.
Code
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.'));
}