Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iqual-ch/reusable-drupal-tests


https://github.com/iqual-ch/reusable-drupal-tests

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Reusable Drupal Tests

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

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

## Updating existing Drupal tests into reusable Drupal tests

## Using together with Drupal Test Traits