The commonly used Behat funcitonality used by Promet in Behat testing using Drupal.
Install using composer. Simply add a similar line to your composer.json.
"require-dev": {
promet/drupal-behat-extension": "*",
}
For basic usage, simply extend your FeatureContext
class with PrometDrupalContext
much like so
<?php
use Promet\Drupal\Behat\PrometDrupalContext;
class FeatureContext extends PrometDrupalContext
{
public function __construct($parameters) {
parent::__construct($parameters);
$this->useContext('YourSubContext', new YourSubContext());
}
}
This will give you full access to all of the already defined helper functions and subcontexts built into this library.