PHPackages                             dennisdigital/behat-references-generator - 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. dennisdigital/behat-references-generator

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

dennisdigital/behat-references-generator
========================================

Generates non-existing referenced entities when creating content

1.0-alpha(7y ago)0111[2 issues](https://github.com/dennisinteractive/behat-references-generator/issues)[2 PRs](https://github.com/dennisinteractive/behat-references-generator/pulls)MITPHP

Since Jun 19Pushed 7y ago37 watchersCompare

[ Source](https://github.com/dennisinteractive/behat-references-generator)[ Packagist](https://packagist.org/packages/dennisdigital/behat-references-generator)[ Docs](https://github.com/dennisinteractive/behat-drupal-entity-reference-generator)[ RSS](/packages/dennisdigital-behat-references-generator/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

Behat References Generator
==========================

[](#behat-references-generator)

Generates non-existing referenced entities when creating content

### Installation

[](#installation)

1. `composer require dennisdigital/behat-references-generator:dev-master`

You might need to add it to repositories first

```
"repositories": {
    "behat-references-generator": {
      "type": "vcs",
      "url": "git@github.com:dennisinteractive/behat-references-generator.git",
      "no-api": true
    }
.
.
.

```

2. Edit behat.yml and add the contexts and configuration following the example in \[behat.yml.dist\]:

### Requirements

[](#requirements)

You need to enable these modules

- Entity API

**For the demo you will need to enable this module:**

- Node Reference Content (Copy from the fixtures folder into the site's modules folder)

### Running

[](#running)

- Go into the tests folder
- Run `./behat --format=pretty`

### Failing tests

[](#failing-tests)

You can find the screenshots of failing tests on the `files/screenshots` folder

### @todo

[](#todo)

- make field mapping work
- make default content for image fields work
- make default content for node fields work
- make yml overrides for image fields work
- make yml overrides for content fields work
- make step definition overrides for image fields work
- make step definition overrides for content fields work
- make url aliases work on nodes, terms and images
- fix php errors when running tests
- allow to have more than one alias for the same field name
- support default content for terms
- support content generation for terms
- upgrade drupal extension and drupal driver
- update readme

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

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

2830d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7585951?v=4)[dennisdigital](/maintainers/dennisdigital)[@dennisdigital](https://github.com/dennisdigital)

---

Top Contributors

[![marcelovani](https://avatars.githubusercontent.com/u/2162363?v=4)](https://github.com/marcelovani "marcelovani (94 commits)")

---

Tags

behatcontentBehatentities

### Embed Badge

![Health badge](/badges/dennisdigital-behat-references-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dennisdigital-behat-references-generator/health.svg)](https://phpackages.com/packages/dennisdigital-behat-references-generator)
```

###  Alternatives

[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[acquia/drupal-spec-tool

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

1532.6M3](/packages/acquia-drupal-spec-tool)[drevops/behat-steps

Collection of steps for Behat

25381.7k3](/packages/drevops-behat-steps)[genesis/behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.

281.5M17](/packages/genesis-behat-fail-aid)[nuvoleweb/drupal-behat

Drupal Behat extension.

33787.7k3](/packages/nuvoleweb-drupal-behat)[drush-ops/behat-drush-endpoint

Drush commandfile for use with drupal/drupal-driver.

132.8M16](/packages/drush-ops-behat-drush-endpoint)

PHPackages © 2026

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