PHPackages                             hidgweb/drupal-behat-contexts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. hidgweb/drupal-behat-contexts

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

hidgweb/drupal-behat-contexts
=============================

Provides additional step definitions for testing Drupal sites using the Behat Drupal Extension.

2.1.0(5y ago)01.1k[2 PRs](https://github.com/HID-GS/drupal-behat-contexts/pulls)GPL-2.0-or-laterPHP

Since Aug 3Pushed 3y ago6 watchersCompare

[ Source](https://github.com/HID-GS/drupal-behat-contexts)[ Packagist](https://packagist.org/packages/hidgweb/drupal-behat-contexts)[ Docs](https://github.com/HID-GS/drupal-behat-contexts)[ RSS](/packages/hidgweb-drupal-behat-contexts/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (13)Used By (0)

Drupal Behat Contexts
=====================

[](#drupal-behat-contexts)

[![Latest Stable Version](https://camo.githubusercontent.com/0febd404fc7d08df7b90b8bc06b1bb87cb435c4b786368c8c02052c288a1ed16/68747470733a2f2f706f7365722e707567782e6f72672f686964677765622f64727570616c2d62656861742d636f6e74657874732f762f737461626c65)](https://packagist.org/packages/hidgweb/drupal-behat-contexts)[![Build Status](https://camo.githubusercontent.com/d8583b164dc011ee60299e3722850c54628a2c87ba54c78110f91b0c680aab40/68747470733a2f2f7472617669732d63692e6f72672f4849442d47532f64727570616c2d62656861742d636f6e74657874732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HID-GS/drupal-behat-contexts)

Provides additional step definitions for testing Drupal sites using the [Behat Drupal Extension](https://www.drupal.org/project/drupalextension).

Installation
------------

[](#installation)

Add the following to your `composer.json` file:

```
{
  "require-dev": {
    "hidgweb/drupal-behat-contexts": "^2.0"
  }
}
```

Then, update your dependencies by running `composer update hidgweb/drupal-behat-contexts`.

Configuration
-------------

[](#configuration)

Once installed, add any of the contexts you want to use to your project's `behat.yml` file:

```
  default:
    suites:
      default:
        contexts:
          - HidGlobal\DrupalBehatContexts\Context\ImageContext
          - HidGlobal\DrupalBehatContexts\Context\AjaxContext
          - HidGlobal\DrupalBehatContexts\Context\KeyReferenceContext
          - HidGlobal\DrupalBehatContexts\Context\CookieContext
```

Credits
-------

[](#credits)

KeyReferenceContext sourced from

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 96% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~126 days

Total

10

Last Release

2169d ago

Major Versions

1.2.2 → 2.0.02020-06-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/b05ebd6bb05d9192fc9cf481a151a5b44eb294b9d12a5375d7a5c8f49b07ff4b?d=identicon)[hidgweb](/maintainers/hidgweb)

---

Top Contributors

[![millerrs](https://avatars.githubusercontent.com/u/5420715?v=4)](https://github.com/millerrs "millerrs (72 commits)")[![aloyr](https://avatars.githubusercontent.com/u/231727?v=4)](https://github.com/aloyr "aloyr (1 commits)")[![bariman](https://avatars.githubusercontent.com/u/1425803?v=4)](https://github.com/bariman "bariman (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

behatdrupaljavascriptphppublictestsdrupalBehatcontexts

### Embed Badge

![Health badge](/badges/hidgweb-drupal-behat-contexts/health.svg)

```
[![Health](https://phpackages.com/badges/hidgweb-drupal-behat-contexts/health.svg)](https://phpackages.com/packages/hidgweb-drupal-behat-contexts)
```

###  Alternatives

[acquia/drupal-spec-tool

A tool for specifying Drupal architecture details and generating automated tests for them

1532.6M3](/packages/acquia-drupal-spec-tool)[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[nuvoleweb/drupal-behat

Drupal Behat extension.

33787.7k3](/packages/nuvoleweb-drupal-behat)[drupal/drupal-driver

A collection of reusable Drupal drivers

6715.8M18](/packages/drupal-drupal-driver)[dmore/behat-chrome-extension

Behat extension for controlling Chrome without Selenium

3313.2M358](/packages/dmore-behat-chrome-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
