You are here

protected function ScheduledTransitionTestTrait::runTransition in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 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\Traits

Code

protected function runTransition(ScheduledTransitionInterface $scheduledTransition) : void {

  /** @var \Drupal\scheduled_transitions\ScheduledTransitionsRunnerInterface $runner */
  $runner = \Drupal::service('scheduled_transitions.runner');
  $runner
    ->runTransition($scheduledTransition);
}