protected function ScheduledTransitionTest::runTransition in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 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.
 
File
- tests/
src/ Kernel/ ScheduledTransitionTest.php, line 706  
Class
- ScheduledTransitionTest
 - Tests basic functionality of scheduled_transitions fields.
 
Namespace
Drupal\Tests\scheduled_transitions\KernelCode
protected function runTransition(ScheduledTransitionInterface $scheduledTransition) : void {
  $runner = $this->container
    ->get('scheduled_transitions.runner');
  $runner
    ->runTransition($scheduledTransition);
}