{"id":13852452,"url":"https://github.com/jhedstrom/drupalextension","last_synced_at":"2025-05-14T04:08:22.129Z","repository":{"id":5429606,"uuid":"6621776","full_name":"jhedstrom/drupalextension","owner":"jhedstrom","description":"An integration layer between Behat, Mink Extension, and Drupal.","archived":false,"fork":false,"pushed_at":"2025-02-26T00:27:02.000Z","size":4065,"stargazers_count":210,"open_issues_count":125,"forks_count":192,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-04-10T22:29:46.984Z","etag":null,"topics":["behat","behat-extension","drupal","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhedstrom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["jhedstrom"]}},"created_at":"2012-11-09T22:54:07.000Z","updated_at":"2025-02-26T10:36:56.000Z","dependencies_parsed_at":"2024-09-23T03:00:36.579Z","dependency_job_id":"a92d19b6-8fc0-4d73-ac2c-73fe402911e2","html_url":"https://github.com/jhedstrom/drupalextension","commit_stats":{"total_commits":1205,"total_committers":118,"mean_commits":"10.211864406779661","dds":0.4763485477178423,"last_synced_commit":"302b09c8b435329486f0af037cc6db06c2a35721"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhedstrom%2Fdrupalextension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhedstrom%2Fdrupalextension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhedstrom%2Fdrupalextension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhedstrom%2Fdrupalextension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhedstrom","download_url":"https://codeload.github.com/jhedstrom/drupalextension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069705,"owners_count":22009558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["behat","behat-extension","drupal","php"],"created_at":"2024-08-04T22:01:20.777Z","updated_at":"2025-05-14T04:08:17.113Z","avatar_url":"https://github.com/jhedstrom.png","language":"PHP","readme":"# Behat Drupal Extension\n\nThe Drupal Extension is an integration layer between [Behat](http://behat.org),\n[Mink Extension](https://github.com/Behat/MinkExtension), and Drupal. It\nprovides step definitions for common testing scenarios specific to Drupal\nsites.\n\n[![ci](https://github.com/jhedstrom/drupalextension/actions/workflows/ci.yml/badge.svg)](https://github.com/jhedstrom/drupalextension/actions/workflows/ci.yml)\n\nThe Drupal Extension 5.x supports Drupal 9 and 10, utilizes Behat 3.2+ and runs\non:\n\n- PHP 7.4, 8.0, 8.1 with Drupal 9\n- PHP 8.1 with Drupal 10.\n\n[![Latest Stable Version](https://poser.pugx.org/drupal/drupal-extension/v/stable.svg)](https://packagist.org/packages/drupal/drupal-extension)\n[![Total Downloads](https://poser.pugx.org/drupal/drupal-extension/downloads.svg)](https://packagist.org/packages/drupal/drupal-extension)\n[![Latest Unstable Version](https://poser.pugx.org/drupal/drupal-extension/v/unstable.svg)](https://packagist.org/packages/drupal/drupal-extension)\n[![License](https://poser.pugx.org/drupal/drupal-extension/license.svg)](https://packagist.org/packages/drupal/drupal-extension)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jhedstrom/drupalextension/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jhedstrom/drupalextension/?branch=master)\n\n## Use it for testing your Drupal site.\n\nIf you're new to the Drupal Extension, we recommend starting with\nthe [Full documentation](https://behat-drupal-extension.readthedocs.org)\n\n[![Documentation Status](https://readthedocs.org/projects/behat-drupal-extension/badge/?version=master)](https://behat-drupal-extension.readthedocs.org)\n\n### Quick start\n\n1. Install using [Composer](https://getcomposer.org/):\n\n    ``` bash\n    mkdir projectdir\n    cd projectdir\n    curl -sS https://getcomposer.org/installer | php\n    COMPOSER_BIN_DIR=bin php composer.phar require drupal/drupal-extension='~5.0'\n    ```\n\n1.  In the projectdir, create a file called `behat.yml`. Below is the\n    minimal configuration. Many more options are covered in the\n    [Full documentation](https://behat-drupal-extension.readthedocs.org)\n\n    ``` yaml\n    default:\n      suites:\n        default:\n          contexts:\n            - Drupal\\DrupalExtension\\Context\\DrupalContext\n      extensions:\n        Drupal\\MinkExtension:\n          # Guzzle is used as HTTP client. You can configure the Guzzle request\n          # options by setting `browserkit_http.guzzle_request_options`. For\n          # instance the following configuration will disable SSL peer verification:\n          # browserkit_http:\n          #   guzzle_request_options:\n          #     verify: false\n          # See \\GuzzleHttp\\RequestOptions for all built-in Guzzle request options\n          browserkit_http: ~\n          base_url: http://example.org/  # Replace with your site's URL\n        Drupal\\DrupalExtension:\n          blackbox: ~\n  ```\n\n1. In the projectdir, run\n\n    ``` bash\n    bin/behat --init\n    ```\n\n1. Find pre-defined steps to work with using:\n\n    ```bash\n    bin/behat -di\n    ```\n\n1. Define your own steps in `projectdir\\features\\FeatureContext.php`\n\n1. Start adding your [feature files](http://behat.org/en/latest/user_guide/gherkin.html)\n   to the `features` directory of your repository.\n\n## Credits\n\n * Originally developed by [Jonathan Hedstrom](https://github.com/jhedstrom) with great help from [eliza411](https://github.com/eliza411)\n * Maintainers\n   * [Pieter Frenssen](https://github.com/pfrenssen)\n   * [All these great contributors](https://github.com/jhedstrom/drupalextension/graphs/contributors)\n\n## Additional resources\n\n * [Behat Drupal Extension documentation](https://behat-drupal-extension.readthedocs.org)\n * [Behat documentation](http://docs.behat.org)\n * [Mink documentation](http://mink.behat.org)\n * [Drupal Behat group](http://groups.drupal.org/behat)\n\n## Examples and code snippets\n\n * [Complex node creation, with field collections and entity references](https://gist.github.com/jhedstrom/5708233)\n * [Achievements module support](https://gist.github.com/jhedstrom/9633067)\n * [Drupal form element visibility](https://gist.github.com/pbuyle/7698675)\n * [Track down PHP notices](https://www.godel.com.au/blog/use-behat-track-down-php-notices-they-take-over-your-drupal-site-forever)\n * [Support for sites using basic HTTP authentication](https://gist.github.com/jhedstrom/5bc5192d6dacbf8cc459)\n\n## Release notes\n\nSee [CHANGELOG](CHANGELOG.md).\n\n## Contributing\n\nFeatures and bug fixes are welcome! First-time contributors can jump in with the\nissues tagged [good first issue](https://github.com/jhedstrom/drupalextension/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).\n\nSee [CONTRIBUTING.md](https://github.com/jhedstrom/drupalextension/blob/master/CONTRIBUTING.md) for more information.\n","funding_links":["https://github.com/sponsors/jhedstrom"],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhedstrom%2Fdrupalextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhedstrom%2Fdrupalextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhedstrom%2Fdrupalextension/lists"}