You are here

public function SchedulerContext::addInSecondsAgo in Lightning Workflow 8.2

Schedules a transition to take place a certain number of seconds ago.

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

Parameters

string $state: The destination state of the transition.

int $n: The number of seconds.

1 call to SchedulerContext::addInSecondsAgo()
SchedulerContext::addInMinutesAgo in modules/lightning_scheduler/tests/contexts/SchedulerContext.behat.inc
Schedules a transition to take place a certain number of minutes ago.

File

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

Class

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

Namespace

Acquia\LightningExtension\Context

Code

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