2017 © Pedro Peláez
 

behat-extension drupal-behat

Drupal Behat extension.

image

nuvoleweb/drupal-behat

Drupal Behat extension.

  • Sunday, April 22, 2018
  • by ademarco
  • Repository
  • 6 Watchers
  • 22 Stars
  • 23,549 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 7 Open issues
  • 20 Versions
  • 9 % Grown

The README.md

Behat Drupal Extension

Build Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Nuvole's Behat Drupal Extension extends the popular Behat Drupal Extension in order to provide the following features:, (*2)

  • Additional step definitions covering contributed modules, core functionality and popular third-party plugins.
  • Contexts can access the global Behat service container.
  • Developers can organize their test using dependency injection by declaring their services in a YAML file and/or override default Behat services.
  • Developers can override Drupal driver core classes and allow their step definitions to run transparently on different Drupal core versions.

For more information please check the documentation., (*3)

Installation and setup

Install Nuvole's Behat Drupal Extension with Composer by running:, (*4)

$ composer require nuvoleweb/drupal-behat

Setup the extension by following the Quick start section available on the original Behat Drupal Extension page, just use NuvoleWeb\Drupal\DrupalExtension instead of the native Drupal\DrupalExtension in your behat.yml as shown below:, (*5)

default:
  suites:
    default:
      contexts:
        - Drupal\DrupalExtension\Context\DrupalContext
        - NuvoleWeb\Drupal\DrupalExtension\Context\DrupalContext
        ...
  extensions:
    Behat\MinkExtension:
      goutte: ~
      ...
    # Use "NuvoleWeb\Drupal\DrupalExtension" instead of "Drupal\DrupalExtension".
    NuvoleWeb\Drupal\DrupalExtension:
      api_driver: "drupal"
      ...
      services: "tests/my_services.yml"
      text:
        node_submit_label: "Save and publish"

Extension settings

Nuvole's Behat Drupal Extension accepts all parameters of the original Behat Drupal Extension and it provides the following additional ones:, (*6)

Parameter Description
services: "tests/my_services.yml" Path to your custom service definition YAML file.
text.node_submit_label: "Save and publish" Label of node form submit button (different in Drupal 7/6 and Drupal 8).

Additional resources

The Versions

22/04 2018
22/04 2018

1.x-dev

1.9999999.9999999.9999999-dev

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

22/04 2018

dev-remove-bovigo

dev-remove-bovigo

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

22/04 2018

dev-task-runner

dev-task-runner

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

22/04 2018

dev-27-entities-getFieldDefinition

dev-27-entities-getFieldDefinition

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

18/04 2018
19/11 2017
30/10 2017

1.0.x-dev

1.0.9999999.9999999-dev

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

30/10 2017

1.1.0

1.1.0.0

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

07/09 2017

dev-19-email-context

dev-19-email-context

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

11/05 2017

0.8.x-dev

0.8.9999999.9999999-dev

Traits and other components for the Drupal Behat extension.

  Sources   Download

The Requires

 

10/01 2017

dev-11-phpunit-version

dev-11-phpunit-version

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

06/01 2017

1.0.2

1.0.2.0

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

06/01 2017

dev-feature/5-yaml-content-test

dev-feature/5-yaml-content-test

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

03/10 2016

1.0.1

1.0.1.0

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

19/09 2016

1.0.0

1.0.0.0

Drupal Behat extension.

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Nuvole Web

test behat drupal web

17/09 2016

0.7.x-dev

0.7.9999999.9999999-dev

Traits and other components for the Drupal Behat extestion.

  Sources   Download

The Requires

 

17/08 2016

0.8.1

0.8.1.0

Traits and other components for the Drupal Behat extension.

  Sources   Download

The Requires

 

23/10 2015

0.7.1

0.7.1.0

Traits and other components for the Drupal Behat extestion.

  Sources   Download

The Requires

 

23/10 2015

0.7.0

0.7.0.0

Traits and Contexts for Drupal Behat tests

  Sources   Download

The Requires