You are here

function SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserChange in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteTypeBasicUserFunctionalTest::testSecureSiteTypeBasicUserChange()

Request home page with credentials for new user.

File

./securesite.test, line 1287
Tests for Secure Site module.

Class

SecureSiteTypeBasicUserFunctionalTest
Functional tests for basic authentication with user credentials.

Code

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.'));
}