public function SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserChange in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserChange()
Request home page with credentials for new user.
File
- ./
securesite.test, line 1323 - Tests for Secure Site module.
Class
- SecureSiteTypeBasicUserFunctionalTest
- Functional tests for basic authentication with user credentials.
Code
public function testSecureSiteTypeBasicUserChange() {
$this
->drupalLogin($this
->drupalCreateUser());
$this->curl_options[CURLOPT_USERPWD] = $this->access_user->name . ':' . $this->access_user->pass_raw;
$this
->drupalGet(NULL);
$this
->assertResponse(200, t('Requesting home page with credentials for new user.'));
$this
->assertText($this->access_user->name, t('Checking for new user name on page.'));
}