universityofadelaide / codeception-drupal-drush

A Codeception module for running Drupal Drush commands.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drupal Drush

A Codeception module for running drupal drush commands.

Drupal Drush is a Codeception module for running drush commands on Drupal sites.

It also allows the use of the following statements in tests:

// Execute "drush cc all"
$I->getDrush("cc", array("all"))->mustRun();

Install with Composer

{
    "require": {
        "codeception/codeception": "~2.0.0",
        "ixis/codeception-drupal-drush": "dev-develop"
    }
}

Drupal Drush minimally requires Codeception 2.0.* and PHP 5.4

Example suite configuration

class_name: AcceptanceTester
modules:
    enabled:
        - PhpBrowser
        - AcceptanceHelper
        - DrupalDrush
    config:
        PhpBrowser:
            url: 'http://localhost/myapp/'
        DrupalDrush:
            drush-alias: '@mysite.local' # The Drush alias to use (required).

Required configuration

  • drush-alias is required.

About

A Codeception module for running Drupal Drush commands.


Languages

Language:PHP 100.0%