You are here

function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronAll in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronAll()

Try cron.php with all authentication types enabled.

File

./securesite.test, line 995
Tests for Secure Site module.

Class

SecureSiteForceAlwaysFunctionalTest
Functional tests for page requests with authentication always forced.

Code

function testSecureSiteForceAlwaysCronAll() {
  variable_set('securesite_type', array(
    SECURESITE_FORM,
    SECURESITE_BASIC,
    SECURESITE_DIGEST,
  ));
  $cron_last = variable_get('cron_last', NULL);
  $this
    ->drupalGet(url(NULL, array(
    'absolute' => TRUE,
  )) . 'cron.php');
  $this
    ->assertTrue(variable_get('cron_last', NULL) == $cron_last, t('Trying cron.php with all authentication types enabled.'));
}