{"id":20028833,"url":"https://github.com/phase2/drushextension","last_synced_at":"2025-10-06T23:13:52.457Z","repository":{"id":4211699,"uuid":"5332385","full_name":"phase2/DrushExtension","owner":"phase2","description":"Behat extension for integration with Drupal (via Drush)","archived":false,"fork":false,"pushed_at":"2012-08-09T21:23:20.000Z","size":259,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-15T18:51:37.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edx/edx-platform","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phase2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-07T19:22:58.000Z","updated_at":"2017-08-22T22:39:45.000Z","dependencies_parsed_at":"2022-09-21T00:20:38.880Z","dependency_job_id":null,"html_url":"https://github.com/phase2/DrushExtension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phase2/DrushExtension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2FDrushExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2FDrushExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2FDrushExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2FDrushExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/DrushExtension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2FDrushExtension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278693086,"owners_count":26029435,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-13T09:16:46.068Z","updated_at":"2025-10-06T23:13:52.440Z","avatar_url":"https://github.com/phase2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"DrushExtension\n---\n\nThis extension provides integration with Drupal CMS projects, via the Drush\ncommand-line utility.  It provides:\n\n* DrushAwareInterface, which provides a Drush object for you contexts, useful\n  for setting up test conditions, even when the system-under-test is remote.\n* DrushMinkContext, which provides some useful step definitions for common\n  Drupal functions, such as creating users and logging in.\n\nInstallation\n---\n\nThis extension requires:\n\n* [Behat 2.4+](http://behat.org/)\n* [MinkExtension](http://extensions.behat.org/mink/)\n\n### Through Composer\n\n1. Define dependencies in your composer.json:\n```javascript\n   {\n       \"require\": {\n           ...\n           \"phase2/drush-extension\": \"*\"\n       },\n       \"repositories\": [\n         ...\n         {\n           \"type\": \"vcs\",\n           \"url\": \"https://github.com/phase2/DrushExtension\"\n         }\n       ]\n   }\n```\n   \n2. Install/update your vendors\n```\n   $ curl http://getcomposer.org/installer | php\n   $ php composer.phar install\n```\n3. Activate extension in your behat.yml\n```yml\n   default:\n     # ...\n       extensions:\n         Behat\\DrushExtension\\Extension: ~\n```\n\nUsage\n---\n\nAfter installing extension, there are 2 usage options available for you:\n\n1. Implementing `Behat\\DrushExtension\\Context\\DrushAwareInterface` with your\n   context or its subcontexts. This will give you the flexibility to inherit\n   from any Context object, but also get an initialized Drush object set in\n   your context.\n2. Extend `Behat\\DrushExtension\\Context\\DrushMinkContext` with your context or\n   subcontext.  This context is an implementation of the `DrushAwareInterface`\n   and also and extension of `MinkContext`.  You will get all of the Mink step\n   definitions, all of the Drush step definitions, and access to an initialized\n   Drush object.\n\nBoth of these methods will implement the `setDrush(Drush $drush)` method. This\nmethod would be automatically called immediately after each context creation\nbefore each scenario, initialized with the parameters set in your `behat.yml` file.\n\nConfiguration\n---\n\nDrushExtension comes with a flexible configuration system, that gives you the\nability to configure how Drush is used.\n\n* `drush_alias` - specifies the drush alias to use from the Drush object.\n  Consider this the back-end equivalent to the `base_url` defined by the\n  `MinkExtension`.  Both of these settings should point to the same system.\n* `config_file` - specify a `drushrc.php` file to be used whenever Drush issues\n  a command.  Almost every drush option can be specified in a `drushrc.php` file\n  so there should be very little that you can't manipulate using this option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdrushextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fdrushextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdrushextension/lists"}