drupal-unit

Community

Isolated Drupal unit tests with UnitTestCase.

Authoredutrul
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Unit tests for Drupal code often require full Drupal bootstrap; this skill enables testing isolated PHP logic without bootstrapping and with mocked dependencies.

Core Features & Use Cases

  • Pure PHP unit tests without Drupal bootstrap
  • Mock dependencies with PHPUnit
  • Use UnitTestCase as base class

Quick Start

Create a basic unit test using UnitTestCase and run it with PHPUnit in a Drupal module project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: drupal-unit
Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-unit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.