PHPackages                             dman-coders/drupal-more-extensions - 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. dman-coders/drupal-more-extensions

ActiveBehat-extension[Testing &amp; Quality](/categories/testing)

dman-coders/drupal-more-extensions
==================================

Extended Drupal extensions for Behat

1.0.x-dev(8y ago)32GPL-2.0+PHP

Since Feb 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dman-coders/drupal-more-extensions)[ Packagist](https://packagist.org/packages/dman-coders/drupal-more-extensions)[ Docs](https://github.com/dman-coders/drupal-more-extensions)[ RSS](/packages/dman-coders-drupal-more-extensions/feed)WikiDiscussions 1.0 Synced 3d ago

READMEChangelogDependencies (1)Versions (1)Used By (0)

drupal-more-extensions
======================

[](#drupal-more-extensions)

Extended Drupal extensions for Behat

For setup instructions on getting testing for Drupal running, see the drupal-extension docs

This set of 'Contexts' provides a few more sets of actions we can test.

Install
-------

[](#install)

To include these contexts in your project:

- Include this library in your behat test project composer.json

    ```
    {
      "require": {
        /* Other stuff */
        "dman-coders/drupal-more-extensions": "~1.0@dev"
      },
      "repositories": [
        {
          "type": "vcs",
          "url": "git@github.com:jhedstrom/drupalextension.git"
        }
      ],
    }

    ```

    And run `composer update`.
- Include the DrupalMoreExtensions Context(s) in your behat.yml

    ```
    default:
      suites:
        default:
          contexts:
            - FeatureContext
            - Drupal\DrupalExtension\Context\DrupalContext
            /* Other Stuff */
            - Drupal\DrupalMoreExtensions\Context\BrowserContext
            - Drupal\DrupalMoreExtensions\Context\ScreenshotContext:
                params:
                  path: 'screenshots'
                  timestamped: false

    ```

    And you should see the new commands become available.

Features
--------

[](#features)

The actions listed here may be incomplete. Run: `behat -dl`to list the real state of available definitions. `behat -di`to show the associated action help.

### Screenshotting actions.

[](#screenshotting-actions)

```
Drupal\DrupalMoreExtensions\Context\ScreenshotContext

```

- @Given the viewport is :arg1
- @Given the viewport is wide/medium/narrow/mobile
- @Then I take a screenshot and save as :arg1
- @Then /^take a screenshot of "(\[^"\]*)" and save as "(\[^"\]*)"$/

And some runtime debug additions:

- @Then /^show me a screenshot$/
- @Then /^show me the HTML page$/

### Some additional utility actions for interacting with a web page.

[](#some-additional-utility-actions-for-interacting-with-a-web-page)

```
Drupal\DrupalMoreExtensions\Context\BrowserContext

```

- @Given I wait :arg1 seconds
- I select vertical tab "#edit-options"
- @Then /^I fill in ckeditor on field "(\[^"\]*)" with "(\[^"\]*)"$/
- @Then /^I fill in tinymce on field "(\[^"\]*)" with "(\[^"\]*)"$/

### Some additional utility actions for logging in to Drupal

[](#some-additional-utility-actions-for-logging-in-to-drupal)

```
Drupal\DrupalMoreExtensions\Context\DrupalLoginContext

```

- @Given I log in to Drupal as :arg1 with password :arg2
- @Given I log in to OpenID as :arg1 with password :arg2
- @Given I remember cookies
- @Given I am logged in as user :name
- @Given I am authenticated with Drupal as (user) :arg1 with password :arg2
- @Given I reset the admin password to :arg1
- @Given I am logged in as the superuser

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

[](#installation)

To include these new steps and actions,

In behat.yml, include:

```
default:
  suites:
    default:
      contexts:
        - Drupal\DrupalMoreExtensions\Context\DrupalLoginContext

```

If you want to use the "I am logged in as user :name" action, pre-configure some users as below. This will NOT create these users, use this to leverage existing accounts.

```
      ...
        - Drupal\DrupalMoreExtensions\Context\DrupalLoginContext:
            users:
              admin:
                name: admin
                pass: adminpass
              member:
                name: "tester"
                pass: "tester"

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3006d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0c374dee5ab74e43cf9394b29793ea9e8c3ad935f01f1bc322e72112d53e3a7?d=identicon)[dman-coders](/maintainers/dman-coders)

---

Top Contributors

[![dman-coders](https://avatars.githubusercontent.com/u/1018669?v=4)](https://github.com/dman-coders "dman-coders (55 commits)")

---

Tags

testwebdrupal

### Embed Badge

![Health badge](/badges/dman-coders-drupal-more-extensions/health.svg)

```
[![Health](https://phpackages.com/badges/dman-coders-drupal-more-extensions/health.svg)](https://phpackages.com/packages/dman-coders-drupal-more-extensions)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[drupal/drupal-driver

A collection of reusable Drupal drivers

6715.8M18](/packages/drupal-drupal-driver)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)[nuvoleweb/drupal-behat

Drupal Behat extension.

33787.7k3](/packages/nuvoleweb-drupal-behat)[robertfausk/behat-panther-extension

Symfony Panther extension for Behat

341.7M87](/packages/robertfausk-behat-panther-extension)[drupal/tqextension

Behat extension for testing Drupal sites

1134.4k](/packages/drupal-tqextension)

PHPackages © 2026

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