You are here

public function SchedulerFunctionalTest::testBasicSchedulingWithOnlySchedulerCron in Scheduler 7

Tests scheduler when not all cron tasks are run during cron.

Verify that we can set variable 'scheduler_cache_clear_all' so the page cache is still cleared.

@uses testScheduler()

File

tests/scheduler.test, line 240
Scheduler module test case file.

Class

SchedulerFunctionalTest
Tests the scheduler interface.

Code

public function testBasicSchedulingWithOnlySchedulerCron() {

  // Cache pages for anonymous users.
  variable_set('cache', 1);

  // Instruct scheduler to clear caches itself, instead of relying on
  // system_cron.
  variable_set('scheduler_cache_clear_all', 1);

  // Instruct the helper method to run only the scheduler cron.
  $scheduler_cron_only = TRUE;
  $this
    ->testBasicScheduling($scheduler_cron_only);
}