function SecureSiteForceAlwaysFunctionalTest::setUp in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
securesite.test, line 922 - Tests for Secure Site module.
Class
- SecureSiteForceAlwaysFunctionalTest
- Functional tests for page requests with authentication always forced.
Code
function setUp() {
parent::setUp('securesite');
$this->user = $this
->drupalCreateUser();
$perm = db_result(db_query_range("SELECT perm FROM {permission} WHERE rid = %d", DRUPAL_ANONYMOUS_RID, 0, 1));
db_query("UPDATE {permission} SET perm = '%s' WHERE rid = %d", $perm . ', access secured pages', DRUPAL_ANONYMOUS_RID);
variable_set('securesite_enabled', SECURESITE_ALWAYS);
}