You are here

protected function ScheduledTransitionTest::runTransition in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/ScheduledTransitionTest.php \Drupal\Tests\scheduled_transitions\Kernel\ScheduledTransitionTest::runTransition()

Checks and runs any ready transitions.

Parameters

\Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface $scheduledTransition: A scheduled transition.

8 calls to ScheduledTransitionTest::runTransition()
ScheduledTransitionTest::testChangedTimeUpdated in tests/src/Kernel/ScheduledTransitionTest.php
Test the changed timestamp is updated when a transition is executed.
ScheduledTransitionTest::testLogsDeletedState in tests/src/Kernel/ScheduledTransitionTest.php
Test when a default or latest revision use a state that no longer exists.
ScheduledTransitionTest::testScheduledRevision in tests/src/Kernel/ScheduledTransitionTest.php
Tests a scheduled revision.
ScheduledTransitionTest::testScheduledRevisionLatestNonDefault in tests/src/Kernel/ScheduledTransitionTest.php
Tests a scheduled revision.
ScheduledTransitionTest::testScheduledRevisionRecreateDefaultHead in tests/src/Kernel/ScheduledTransitionTest.php
Tests a scheduled revision.

... See full list

File

tests/src/Kernel/ScheduledTransitionTest.php, line 708

Class

ScheduledTransitionTest
Tests basic functionality of scheduled_transitions fields.

Namespace

Drupal\Tests\scheduled_transitions\Kernel

Code

protected function runTransition(ScheduledTransitionInterface $scheduledTransition) : void {
  $runner = $this->container
    ->get('scheduled_transitions.runner');
  $runner
    ->runTransition($scheduledTransition);
}