behat / drupal-propeople-context
1.2.3
2015-04-09 09:51 UTC
Requires
- php: >=5.4
- drupal/drupal-extension: ~3.0
README
Propeople Behat 上下文
Propeople Drupal 上下文提供了一种灵活的方法来测试运行在 Drupal 7 上的网站。此存储库中的上下文扩展了 DrupalExtension 的上下文。
安装
- 安装 Composer。
- 导航到包含您的 Drupal 项目的文件夹。如果项目结构相似会更好
/project_name
|-- docroot
| |-- [drupal installation without any custom files]
| |-- [...]
|-- [another folders and files e.g. tests, scripts etc.]
|-- [...]
- 创建
composer.json
文件
{ "require": { "behat/drupal-propeople-context": "~1.2" }, "config": { "bin-dir": "bin/" }, "scripts": { "post-install-cmd": "mv bin/bdpc bin/behat" } }
- 执行
composer install
命令。 - 通过执行
bin/behat --init --url=http://example.com
初始化基本上下文和配置。如果 Drupal 安装在当前文件夹之上,则命令可以接受dir
参数。例如bin/behat --init --url=http://project.loc --dir=docroot
。 - 如有需要,请配置
behat.yml
。 - 阅读有关创建特性的 文档。