Skip to content

A helper extension to facility common tasks in Promet's Drupal based Behat tests.

Notifications You must be signed in to change notification settings

snapik/drupal-behat-extension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Behat Extension

The commonly used Behat funcitonality used by Promet in Behat testing using Drupal.

Installation

Install using composer. Simply add a similar line to your composer.json.

    "require-dev": {
      promet/drupal-behat-extension": "*",
    }

Usage

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.

About

A helper extension to facility common tasks in Promet's Drupal based Behat tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published