function SecureSiteBasicUserTest::testSecureSiteTypeBasicUserChange in Secure Site 8
Request home page with credentials for new user.
File
- src/
Tests/ BasicAuth/ SecureSiteBasicUserTest.php, line 88 - Contains Drupal\securesite\Tests\BasicAuth\SecureSiteBasicUserTest
Class
- SecureSiteBasicUserTest
- Functional tests for basic authentication with user credentials.
Namespace
Drupal\securesite\Tests\BasicAuthCode
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.'));
}