dennisdigital / behat-references-generator
Generates non-existing referenced entities when creating content
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 39
Forks: 1
Open Issues: 4
Type:behat-extension
Requires
- behat/mink: ^1.7
- drupal/drupal-driver: ~1.0
- drupal/drupal-extension: ~3.3
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is auto-updated.
Last update: 2025-01-14 04:10:12 UTC
README
Generates non-existing referenced entities when creating content
Installation
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
}
.
.
.
- Edit behat.yml and add the contexts and configuration following the example in [behat.yml.dist]: https://github.com/dennisinteractive/behat-references-generator/blob/master/behat.yml.dist
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
- Go into the tests folder
- Run
./behat --format=pretty
Failing tests
You can find the screenshots of failing tests on the files/screenshots
folder
@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