All Projects → jhedstrom → Drupalextension

jhedstrom / Drupalextension

Licence: gpl-2.0
An integration layer between Behat, Mink Extension, and Drupal.

Projects that are alternatives of or similar to Drupalextension

TqExtension
Test your Drupal 7 (D8 in progress) sites easier with TqExtension for Behat.
Stars: ✭ 13 (-93.19%)
Mutual labels:  drupal, behat
drevops
💧 + 🐳 + ✓✓✓ + 🤖 + ❤️ Build, Test, Deploy scripts for Drupal using Docker and CI/CD
Stars: ✭ 55 (-71.2%)
Mutual labels:  drupal, behat
drupal-circleci-behat
Test and deploy Drupal 9 with CircleCI 2.0 and Behat 3
Stars: ✭ 17 (-91.1%)
Mutual labels:  drupal, behat
campaign
Comic Relief Campaign Distribution in Drupal 8
Stars: ✭ 22 (-88.48%)
Mutual labels:  drupal, behat
Nginxconfig.io
⚙️ NGINX config generator on steroids 💉
Stars: ✭ 14,983 (+7744.5%)
Mutual labels:  drupal
Webapiextension
Behat extension to test web APIs
Stars: ✭ 119 (-37.7%)
Mutual labels:  behat
Contextserviceextension
🎃 [DEPRECATED] Allows to declare and use contexts services in scenario scoped container.
Stars: ✭ 113 (-40.84%)
Mutual labels:  behat
Drupal Project
🚀 Composer template for Drupal projects. Quick installation via "composer create-project drupal-composer/drupal-project"
Stars: ✭ 1,502 (+686.39%)
Mutual labels:  drupal
Bolt
The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Stars: ✭ 186 (-2.62%)
Mutual labels:  drupal
Suitesettingsextension
📎 Allows to overwrite suites' default settings.
Stars: ✭ 182 (-4.71%)
Mutual labels:  behat
Composer Drupal Optimizations
Saves memory and CPU cycles when you run `composer update`
Stars: ✭ 144 (-24.61%)
Mutual labels:  drupal
Php Ddd Example
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 5
Stars: ✭ 1,960 (+926.18%)
Mutual labels:  behat
Devshop
Open Source DevOps Framework
Stars: ✭ 161 (-15.71%)
Mutual labels:  drupal
Servicecontainerextension
📻 Allows to declare own services inside Behat container without writing an extension.
Stars: ✭ 114 (-40.31%)
Mutual labels:  behat
Ansipress
AnsiPress - Simple L(Linux) E(NGINX) M(MariaDB) P(PHP7) Shared Hosting Setup
Stars: ✭ 184 (-3.66%)
Mutual labels:  drupal
Drupal8ci
One-line installers for implementing Continuous Integration in Drupal 8
Stars: ✭ 113 (-40.84%)
Mutual labels:  drupal
Lightning Project
A Composer-based installer for the Lightning distribution of Drupal 8.
Stars: ✭ 137 (-28.27%)
Mutual labels:  drupal
Emulsify
DEPRECATED (see README for new version)
Stars: ✭ 165 (-13.61%)
Mutual labels:  drupal
Foundation7
Drupal 7 theme built using ZURB Foundation Sites
Stars: ✭ 132 (-30.89%)
Mutual labels:  drupal
Open social
Open Social install profile Drupal 8
Stars: ✭ 128 (-32.98%)
Mutual labels:  drupal

Behat Drupal Extension

The Drupal Extension is an integration layer between Behat, Mink Extension, and Drupal. It provides step definitions for common testing scenarios specific to Drupal sites.

Build Status

The Drupal Extension 4.x supports Drupal 6, 7 and 8, utilizes Behat 3.2+ and runs on PHP 5.5+. It is compatible with Symfony components 2.x as well as 3.x so it can be used on Drupal 8.4.x.

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

Use it for testing your Drupal site.

If you're new to the Drupal Extension, we recommend starting with the Full documentation

Documentation Status

Quick start

  1. Install using Composer:

    mkdir projectdir
    cd projectdir
    curl -sS https://getcomposer.org/installer | php
    COMPOSER_BIN_DIR=bin php composer.phar require drupal/drupal-extension='~4.0'
    
  2. In the projectdir, create a file called behat.yml. Below is the minimal configuration. Many more options are covered in the Full documentation

default:
  suites:
    default:
      contexts:
        - Drupal\DrupalExtension\Context\DrupalContext
  extensions:
    Drupal\MinkExtension:
      goutte: ~
      base_url: http://example.org/  # Replace with your site's URL
    Drupal\DrupalExtension:
      blackbox: ~
  1. In the projectdir, run

    bin/behat --init
    
  2. Find pre-defined steps to work with using:

    bin/behat -di
    
  3. Define your own steps in projectdir\features\FeatureContext.php

  4. Start adding your feature files to the features directory of your repository.

Credits

Additional resources

Examples and code snippets

Release notes

See CHANGELOG.

Contributing

Features and bug fixes are welcome! First-time contributors can jump in with the issues tagged good first issue.

Backwards incompatible changes

Starting with 3.3.0 Behat Drupal Extension depends on Behat 3.2.0 which requires all callbacks to be defined as static methods.

Before 3.3.0:

/**
 * @afterUserCreate
 */
public function afterUserCreate(EntityScope $scope) {
  // ...
}

Starting with 3.3.0:

/**
 * @afterUserCreate
 */
public static function afterUserCreate(EntityScope $scope) {
  // ...
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].