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