behat/drupal-propeople-context

该包已被放弃,不再维护。作者建议使用 drupal/tqextension 包。

Propeople 为 Behat 定制的 Drupal 上下文

安装次数 6,982

依赖项: 0

建议者: 0

安全: 0

星标: 3

关注者: 3

分支: 4

开放问题: 2

类型:behat-extension

1.2.3 2015-04-09 09:51 UTC

This package is auto-updated.

Last update: 2022-02-01 12:44:19 UTC


README

Propeople Behat 上下文

Propeople Drupal 上下文提供了一种灵活的方法来测试运行在 Drupal 7 上的网站。此存储库中的上下文扩展了 DrupalExtension 的上下文。

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

安装

  • 安装 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
  • 阅读有关创建特性的 文档

我们使用

  • PSR-0 进行自动加载。
  • PSR-2 进行代码风格。

作者

贡献者