What problem does it solve?
This Skill provides comprehensive guidance and best practices for testing Laravel applications using the Pest testing framework, ensuring robust, maintainable, and reliable code.
Core Features & Use Cases
- Testing Patterns: Learn the Arrange-Act-Assert (AAA) pattern, mocking strategies, and null drivers for isolated and deterministic tests.
- Action & Feature Testing: Understand how to effectively unit test domain logic (Actions) and feature test HTTP endpoints.
- Factory Usage: Master model and DTO factories for creating realistic test data and declarative factory methods for readable tests.
- Use Case: When developing a new feature in a Laravel application, use this Skill to write effective unit and feature tests that cover all scenarios, ensuring the feature works as expected and preventing regressions.
Quick Start
Use the laravel-testing skill to write a unit test for the CreateOrderAction class following the AAA pattern.