public function SchedulerContext::add in Lightning Workflow 8.2
Schedules a moderation state transition.
@When I schedule a transition to :state on :date at :time
Parameters
string $state: The destination state of the transition.
string $date: The date of the transition in YYYY-MM-DD format.
string $time: The time of the transition in HH:MM:SS format.
1 call to SchedulerContext::add()
- SchedulerContext::addFromTimeStamp in modules/
lightning_scheduler/ tests/ contexts/ SchedulerContext.behat.inc - Schedules a moderation state transition from a time stamp.
File
- modules/
lightning_scheduler/ tests/ contexts/ SchedulerContext.behat.inc, line 86
Class
- SchedulerContext
- Contains step definitions for interacting with the Lightning Scheduler UI.
Namespace
Acquia\LightningExtension\ContextCode
public function add($state, $date, $time) {
$this
->prepare($state, $date, $time);
$this
->assertSession()
->elementExists('named', [
'button',
'Save transition',
])
->click();
}