Helpers.behat.inc in Lightning Workflow 8.2
File
modules/lightning_scheduler/tests/contexts/Helpers.behat.inc
View source
<?php
namespace Acquia\LightningExtension\Context;
use Drupal\Core\Url;
use Drupal\DrupalExtension\Context\DrupalSubContextBase;
final class Helpers extends DrupalSubContextBase {
public function cron() {
$url = Url::fromRoute('system.cron', [
'key' => \Drupal::state()
->get('system.cron_key'),
]);
$url = $url
->toString();
$url = $this
->locatePath($url);
\Drupal::httpClient()
->get($url);
}
}
Classes
Name |
Description |
Helpers |
Contains miscellaneous helpful step definitions. |