You are here

protected function SchedulerUiTrait::setRequestTime in Lightning Scheduler 8

Sets the time of the request, according to the datetime.time service.

Parameters

int $request_time: The time stamp to set.

5 calls to SchedulerUiTrait::setRequestTime()
ScheduledTransitionTest::testFutureSequence in tests/src/Functional/ScheduledTransitionTest.php
Tests scheduling a series of valid transitions in the future.
ScheduledTransitionTest::testSingleTransition in tests/src/Functional/ScheduledTransitionTest.php
Tests a single scheduled workflow state transition.
ScheduledTransitionTest::testSingleTransitionWithPendingRevision in tests/src/Functional/ScheduledTransitionTest.php
Tests that scheduled transitions work correctly with pending revisions.
TransitionTest::testClearCompletedTransitions in tests/src/FunctionalJavascript/TransitionTest.php
TransitionTest::testPublishPendingRevision in tests/src/FunctionalJavascript/TransitionTest.php

File

tests/src/Traits/SchedulerUiTrait.php, line 116

Class

SchedulerUiTrait
Contains methods for interacting with the scheduler UI.

Namespace

Drupal\Tests\lightning_scheduler\Traits

Code

protected function setRequestTime($request_time) {
  $this->container
    ->get('state')
    ->set('lightning_scheduler.request_time', $request_time);
}