You are here

public function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysCronAll in Secure Site 7.2

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

Try cron.php with all authentication types enabled.

File

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

Class

SecureSiteForceAlwaysFunctionalTest
Functional tests for page requests with authentication always forced.

Code

public 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.'));
}