PHPackages                             semperit/minkcivicrmhelpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. semperit/minkcivicrmhelpers

ActiveDrupal-custom-module[Testing &amp; Quality](/categories/testing)

semperit/minkcivicrmhelpers
===========================

Shared helper functions for running Mink tests against CiviCRM.

019.1k↑86.7%PHP

Since May 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/SemperIT/MinkCiviCRMHelpers)[ Packagist](https://packagist.org/packages/semperit/minkcivicrmhelpers)[ RSS](/packages/semperit-minkcivicrmhelpers/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mink CiviCRM Helpers
====================

[](#mink-civicrm-helpers)

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
=====

[](#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.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance61

Regular maintenance activity

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c44ca53e8ca0bb6e716ecf2309b244fd0976fb32da40f6c02ca8d9dd8737f70?d=identicon)[KarinG](/maintainers/KarinG)

![](https://www.gravatar.com/avatar/4a8889b586f0d89281f8d53b820d55fbcf9da7961c9632ed4a7aa3156428ffe8?d=identicon)[demeritcowboy](/maintainers/demeritcowboy)

---

Top Contributors

[![demeritcowboy](https://avatars.githubusercontent.com/u/2967821?v=4)](https://github.com/demeritcowboy "demeritcowboy (18 commits)")

### Embed Badge

![Health badge](/badges/semperit-minkcivicrmhelpers/health.svg)

```
[![Health](https://phpackages.com/badges/semperit-minkcivicrmhelpers/health.svg)](https://phpackages.com/packages/semperit-minkcivicrmhelpers)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M69](/packages/orchestra-workbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
