protected function TransitionTest::cronRun in Lightning Workflow 8.3
Runs cron, forcing Drupal to use a particular request time.
Parameters
int $time: The request time at which cron will think it is being run.
5 calls to TransitionTest::cronRun()
- TransitionTest::testClearCompletedTransitions in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests that completed transitions are deleted.
- TransitionTest::testPublishInPast in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests automatically publishing a transition scheduled in the past.
- TransitionTest::testPublishPendingRevision in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests automatically publishing a pending revision.
- TransitionTest::testScheduledPublishAndUnpublishInFuture in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests automatically publishing, and then unpublishing, in the future.
- TransitionTest::testSkipInvalidTransition in modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php - Tests that invalid transitions are skipped at processing time.
File
- modules/
lightning_scheduler/ tests/ src/ FunctionalJavascript/ TransitionTest.php, line 191
Class
- TransitionTest
- Tests Lightning Scheduler's transition handling.
Namespace
Drupal\Tests\lightning_scheduler\FunctionalJavascriptCode
protected function cronRun($time = NULL) {
if (isset($time)) {
$this->container
->get('state')
->set('lightning_scheduler.request_time', $time);
}
$this
->traitCronRun();
}