Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iqual-ch/reusable-drupal-tests
https://github.com/iqual-ch/reusable-drupal-tests
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/iqual-ch/reusable-drupal-tests
- Owner: iqual-ch
- Created: 2022-10-06T07:31:13.000Z (over 2 years ago)
- Default Branch: 1.x
- Last Pushed: 2022-10-14T08:15:21.000Z (about 2 years ago)
- Last Synced: 2024-05-13T21:44:54.577Z (8 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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