Drupal Testing

Test-driven development for Drupal with PHPUnit and Drupal Test Traits (DTT). Use when writing or fixing tests, reproducing a bug before fixing it, choosing a bootstrap level (Unit vs Kernel vs ExistingSite/functional), testing permission gates, or debugging tests that silently run zero assertions. Covers the bug-fix RED-first discipline, bootstrap cost tradeoffs, the anonymous-403 permission trap, and the PHPUnit-version pin that makes Drupal tests pass vacuously.

grasmash Updated

File contents

grasmash/drupal-claude-skills/tree/main/skills/drupal-testing commit e414846e4e

Frequently asked questions

npx skillmds@latest add grasmash/drupal-testing