ixis/codeception-drupal-drush

该软件包已被弃用且不再维护。未建议替代软件包。

一个允许在测试期间运行drush命令的Codeception模块。

0.1.0 2016-02-09 14:38 UTC

This package is not auto-updated.

Last update: 2020-08-21 20:16:17 UTC


README

运行Drupal drush命令的Codeception模块。

Drupal Drush 是一个在 Codeception 模块,允许在 Drupal 网站上运行drush命令。

它还允许在测试中使用以下语句

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

使用Composer安装

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

Drupal Drush 至少需要Codeception 2.0.*和PHP 5.4

示例套件配置

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

所需配置

  • drush-alias 是必需的。