semperit/minkcivicrmhelpers
Composer 安装命令:
composer require semperit/minkcivicrmhelpers
包简介
Shared helper functions for running Mink tests against CiviCRM.
README 文档
README
This provides a Drupal 8/9+ module that can be shared among Mink tests that run against CiviCRM. It provides a trait with some helper functions, like assertNoPageErrors() to check if any errors appear on the page or CiviCRM popped up any javascript error boxes on the page.
It also provides a basic starting point for your setUp function which is likely to be common across all tests.
Usage
- composer require semperit/minkcivicrmhelpers
- Include the following in your test class (inside the class definition not at the top of the file):
use \Drupal\Tests\mink_civicrm_helpers\Traits\Utils;
- Include the following var declaration in the class (this tells the drupal test system what it needs during bootstrap):
/** * @var array */ protected static $modules = [ 'mink_civicrm_helpers', ];
- Then typically your setUp() functions will look like this, which installs the extension and does some initial basic config:
public function setUp(): void { parent::setUp(); $this->setUpExtension('_put_your_extension_key_here_'); }
- For further usage see the code comments inside the trait.
统计信息
- 总下载量: 17.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2026-01-04