Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

A Codeception module for running Drupal Drush commands.

Notifications You must be signed in to change notification settings

guncha25/codecept-drupal-drush

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("cr")->mustRun();

Install with Composer

{
    "require": {
        "codeception/codeception": "^2.2",
        "guncha25/codeception-drupal-drush": "~0.3"
    }
}

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:
            working_directory: '/path/to/webroot'

The option working_directory may be ommited, it defaults to the current directory.

About

A Codeception module for running Drupal Drush commands.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%