protected function ScheduledTransitionTestTrait::runTransition in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x tests/src/Traits/ScheduledTransitionTestTrait.php \Drupal\Tests\scheduled_transitions\Traits\ScheduledTransitionTestTrait::runTransition()
Checks and runs any ready transitions.
Parameters
\Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface $scheduledTransition: A scheduled transition.
1 call to ScheduledTransitionTestTrait::runTransition()
- ScheduledTransitionLocalTaskTest::testLatestRevisionTab in tests/
src/ Functional/ ScheduledTransitionLocalTaskTest.php - Tests latest revision tab.
File
- tests/
src/ Traits/ ScheduledTransitionTestTrait.php, line 41
Class
- ScheduledTransitionTestTrait
- Test trait helpers.
Namespace
Drupal\Tests\scheduled_transitions\TraitsCode
protected function runTransition(ScheduledTransitionInterface $scheduledTransition) : void {
/** @var \Drupal\scheduled_transitions\ScheduledTransitionsRunnerInterface $runner */
$runner = \Drupal::service('scheduled_transitions.runner');
$runner
->runTransition($scheduledTransition);
}