PHPackages                             acromedia/drupal-test-traits - 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. acromedia/drupal-test-traits

ActiveLibrary[Testing &amp; Quality](/categories/testing)

acromedia/drupal-test-traits
============================

Useful traits for Drupal testing include a trait that optimises testing using database dumps

18PHP

Since Jan 12Pushed 4y ago2 watchersCompare

[ Source](https://github.com/AcroMedia/drupal-test-traits)[ Packagist](https://packagist.org/packages/acromedia/drupal-test-traits)[ RSS](/packages/acromedia-drupal-test-traits/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Drupal test traits
==================

[](#drupal-test-traits)

Provides useful traits for Drupal tests.

Installation
------------

[](#installation)

`composer require --dev acromedia/drupal-test-traits`

Provided traits
---------------

[](#provided-traits)

### Database Dump test trait

[](#database-dump-test-trait)

This trait can speed up testing by installing Drupal using database dump instead of running a regular profile install.

### Tear down error checking trait

[](#tear-down-error-checking-trait)

Improved error checking for tests especially JavascriptTestBase tests.

### Test combiner trait

[](#test-combiner-trait)

Run multitple tests against the same Drupal install. Beware of side effects!

---

Not to be confused with

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

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/4402e1e5bf69d45606c4f2ba3a947c9bbc3f231edbcb0921bebf03dc8cbc2ea7?d=identicon)[acromedia](/maintainers/acromedia)

---

Top Contributors

[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (9 commits)")

### Embed Badge

![Health badge](/badges/acromedia-drupal-test-traits/health.svg)

```
[![Health](https://phpackages.com/badges/acromedia-drupal-test-traits/health.svg)](https://phpackages.com/packages/acromedia-drupal-test-traits)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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