function SecureSiteTypeFormUserFunctionalTest::setUp in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteTypeFormUserFunctionalTest::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
securesite.test, line 1509 - Tests for Secure Site module.
Class
- SecureSiteTypeFormUserFunctionalTest
- Functional tests for form authentication with user credentials.
Code
function setUp() {
parent::setUp('securesite');
$perm = db_result(db_query("SELECT perm FROM {permission} WHERE rid = %d", DRUPAL_ANONYMOUS_RID));
db_query("UPDATE {permission} SET perm = '%s' WHERE rid = %d", $perm . ', access secured pages', DRUPAL_ANONYMOUS_RID);
$this->normal_user = $this
->drupalCreateUser();
$this->access_user = $this
->drupalCreateUser(array(
'access secured pages',
));
variable_set('securesite_enabled', SECURESITE_ALWAYS);
// Should work with all authentication methods enabled.
variable_set('securesite_type', array(
SECURESITE_FORM,
SECURESITE_BASIC,
SECURESITE_DIGEST,
));
}