You are here

public function SchedulerContext::addInDaysAgo in Lightning Workflow 8.2

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

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

Parameters

string $state: The destination state of the transition.

int $n: The number of days.

File

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

Class

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

Namespace

Acquia\LightningExtension\Context

Code

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