guncha25 / codecept-drupal-drush
This package is abandoned and no longer maintained.
The author suggests using the guncha25/drupal-codeception package instead.
A Codeception module to allow drush commands to be run during tests.
0.5.0
2017-10-05 15:41 UTC
Requires
- codeception/codeception: ^2.2
- symfony/process: ^3
Requires (Dev)
- phpunit/phpunit: ~4.7
This package is auto-updated.
Last update: 2019-09-30 08:44:48 UTC
README
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.