You are here

public function SchedulerContext::addInMinutesAgo in Lightning Workflow 8.2

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

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

Parameters

string $state: The destination state of the transition.

int $n: The number of minutes.

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

File

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

Class

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

Namespace

Acquia\LightningExtension\Context

Code

public function addInMinutesAgo($state, $n) {
  $this
    ->addInSecondsAgo($state, $n * 60);
}