You are here

protected function RevisionSchedulerFunctionalTestCase::pushBackOperations in Revision scheduler 7

1 call to RevisionSchedulerFunctionalTestCase::pushBackOperations()
RevisionSchedulerFunctionalTestCase::testNodeRevisionScheduling in tests/RevisionSchedulerFunctionalTestCase.test

File

tests/RevisionSchedulerFunctionalTestCase.test, line 150

Class

RevisionSchedulerFunctionalTestCase

Code

protected function pushBackOperations($interval = 86400) {
  $count = db_update('revision_scheduler')
    ->expression('time_scheduled', 'time_scheduled - :interval', array(
    ':interval' => $interval,
  ))
    ->condition('time_queued', 0)
    ->condition('time_executed', 0)
    ->execute();
  $this
    ->pass("Pushed {$count} existing, un-run revision operations back {$interval} seconds.");
  return $count;
}