You are here

FeatureContext.php in Drupal Commons 7.3

The main Behat context.

File

tests/features/bootstrap/FeatureContext.php
View source
<?php

/**
 * @file
 * The main Behat context.
 */
use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\Behat\Context\SnippetAcceptingContext;

/**
 * Define application features from the specific context.
 */
class FeatureContext extends RawDrupalContext implements SnippetAcceptingContext {

  /**
   * Initializes context.
   * Every scenario gets its own context object.
   *
   * @param array $parameters
   *   Context parameters (set them in behat.yml)
   */
  public function __construct() {

    // Initialize your context here
  }

}

Classes

Namesort descending Description
FeatureContext Define application features from the specific context.