定制 semperit/minkcivicrmhelpers 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. composer require semperit/minkcivicrmhelpers
  2. 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;
  3. 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', ];
  4. 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_'); }
  5. For further usage see the code comments inside the trait.

统计信息

  • 总下载量: 17.4k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2026-01-04