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.
Installs: 74
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/iqual/reusable-drupal-tests
This package is auto-updated.
Last update: 2025-10-02 12:28:01 UTC
README
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:
- Write a Kernel test class following a loose coupling approach as far as the configuration and instantiation of the Drupal testing instance goes.
- 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
- Install via Composer:
composer require iqual/reusable-drupal-tests --dev
.