3 namespace Drupal\DrupalExtension\Context;
5 use Behat\Behat\Context\Context;
6 use Behat\Testwork\Hook\HookDispatcher;
8 use Drupal\DrupalDriverManager;
9 use Symfony\Component\EventDispatcher\EventDispatcher;
11 interface DrupalAwareInterface extends Context {
14 * Sets Drupal instance.
16 public function setDrupal(DrupalDriverManager $drupal);
19 * Set event dispatcher.
21 public function setDispatcher(HookDispatcher $dispatcher);
24 * Gets Drupal instance.
26 public function getDrupal();
29 * Sets parameters provided for Drupal.
31 * @param array $parameters
33 public function setDrupalParameters(array $parameters);