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.