function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronForm in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronForm()
Try cron.php with only form authentication enabled.
File
- ./
securesite.test, line 1005 - Tests for Secure Site module.
Class
- SecureSiteForceAlwaysFunctionalTest
- Functional tests for page requests with authentication always forced.
Code
function testSecureSiteForceAlwaysCronForm() {
variable_set('securesite_type', array(
SECURESITE_FORM,
));
$cron_last = variable_get('cron_last', NULL);
$this
->drupalGet(url(NULL, array(
'absolute' => TRUE,
)) . 'cron.php');
$this
->assertFalse(variable_get('cron_last', NULL) == $cron_last, t('Trying cron.php with only form authentication enabled.'));
}