function SecureSiteBasicUserTest::setUp in Secure Site 8
Implements setUp().
Overrides WebTestBase::setUp
File
- src/
Tests/ BasicAuth/ SecureSiteBasicUserTest.php, line 41 - Contains Drupal\securesite\Tests\BasicAuth\SecureSiteBasicUserTest
Class
- SecureSiteBasicUserTest
- Functional tests for basic authentication with user credentials.
Namespace
Drupal\securesite\Tests\BasicAuthCode
function setUp() {
parent::setUp();
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array(
'access secured pages',
));
$this->normal_user = $this
->drupalCreateUser();
$this->access_user = $this
->drupalCreateUser(array(
'access secured pages',
));
// Should work with all authentication methods enabled.
\Drupal::config('securesite.settings')
->set('securesite_type', array(
SECURESITE_FORM,
SECURESITE_BASIC,
SECURESITE_DIGEST,
))
->save();
}