Pest Testing Framework
CommunitySimplify Craft CMS test writing with Pest PHP.
Software Engineering#test automation#http assertions#craft cms#php testing#pest php#craft factories#twig testing
Authormarkhuot
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill removes the friction of setting up and writing tests for Craft CMS projects, eliminating boilerplate configuration and letting developers focus on testing custom application logic instead of fighting testing framework setup.
Core Features & Use Cases
- Expressive Test Syntax: Write clean, readable tests for Craft CMS routes, Twig templates, entries, and form submissions using Pest's intuitive, chainable API instead of verbose PHPUnit code.
- Craft-Specific Helpers: Access pre-built factories for entries, assets, users, and other Craft elements, plus built-in methods for simulating HTTP requests, rendering templates directly, and making DOM assertions.
- Use Case: A Craft CMS developer can quickly write a test to verify a blog entry's title renders correctly on its single entry template, or that a contact form submission returns the expected validation error, without writing repetitive setup code.
Quick Start
Use this skill to write a Pest test that verifies your Craft CMS homepage loads successfully and displays the expected welcome heading.
Dependency Matrix
Required Modules
None requiredComponents
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: Pest Testing Framework Download link: https://github.com/markhuot/craft-pest-core/archive/main.zip#pest-testing-framework Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.