You are here

public function SchedulerContext::addInHoursAgo in Lightning Workflow 8.2

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

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

Parameters

string $state: The destination state of the transition.

int $n: The number of hours.

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

File

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

Class

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

Namespace

Acquia\LightningExtension\Context

Code

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