PHPackages                             iqual/reusable-drupal-tests - 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. iqual/reusable-drupal-tests

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

iqual/reusable-drupal-tests
===========================

A tiny framework for writing Drupal test classes in a decoupled way from the PHPUnit/Drupal framework so that they can be reused in different contexts.

1.x-dev(3y ago)074PHP

Since Oct 14Pushed 3y ago4 watchersCompare

[ Source](https://github.com/iqual-ch/reusable-drupal-tests)[ Packagist](https://packagist.org/packages/iqual/reusable-drupal-tests)[ RSS](/packages/iqual-reusable-drupal-tests/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Reusable Drupal Tests
=====================

[](#reusable-drupal-tests)

Introduction
------------

[](#introduction)

This tiny framework is meant to allow Drupal test authors to "decouple" their **Kernel** test classes from the PHPUnit/Drupal test framework(s).

This framework came into existence in order to support the following idea:

1. Write a **Kernel** test class following a loose coupling approach as far as the configuration and instantiation of the Drupal testing instance goes.
2. Use the **Kernel** test class in the context of either a vanilla Drupal instance (classic Drupal testing approach) or against an already functioning Drupal instance (skipping the ::setUp() method).

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

[](#installation)

- Install via Composer: `composer require iqual/reusable-drupal-tests --dev`.

Updating existing Drupal tests into reusable Drupal tests
---------------------------------------------------------

[](#updating-existing-drupal-tests-into-reusable-drupal-tests)

Using together with Drupal Test Traits
--------------------------------------

[](#using-together-with-drupal-test-traits)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43082de1b2e2b2b2d48b7ff7dbc7c60ff1d0a015123d4062ac0b49ea0b3b725f?d=identicon)[iqual](/maintainers/iqual)

---

Top Contributors

[![stefanospetrakis](https://avatars.githubusercontent.com/u/17128522?v=4)](https://github.com/stefanospetrakis "stefanospetrakis (2 commits)")

### Embed Badge

![Health badge](/badges/iqual-reusable-drupal-tests/health.svg)

```
[![Health](https://phpackages.com/badges/iqual-reusable-drupal-tests/health.svg)](https://phpackages.com/packages/iqual-reusable-drupal-tests)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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