You are here

public function SchedulerContext::addInSecondsFromNow in Lightning Workflow 8.2

Same name and namespace in other branches
  1. 8.3 modules/lightning_scheduler/tests/contexts/SchedulerContext.behat.inc \Acquia\LightningExtension\Context\SchedulerContext::addInSecondsFromNow()

Schedules a transition to take place a certain number of seconds from now.

@When I schedule a transition to :state in :n second(s)

Parameters

string $state: The destination state of the transition.

int $n: The number of seconds.

1 call to SchedulerContext::addInSecondsFromNow()
SchedulerContext::addInMinutesFromNow in modules/lightning_scheduler/tests/contexts/SchedulerContext.behat.inc
Schedules a transition to take place a certain number of minutes from now.

File

modules/lightning_scheduler/tests/contexts/SchedulerContext.behat.inc, line 172

Class

SchedulerContext
Contains step definitions for interacting with the Lightning Scheduler UI.

Namespace

Acquia\LightningExtension\Context

Code

public function addInSecondsFromNow($state, $n) {
  $this
    ->addFromTimeStamp($state, time() + $n);
}