public function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronForm in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronForm()
Try cron.php with only form authentication enabled.
File
- ./securesite.test, line 1037 
- Tests for Secure Site module.
Class
- SecureSiteForceAlwaysFunctionalTest
- Functional tests for page requests with authentication always forced.
Code
public 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.'));
}