What problem does it solve?
This Skill equips developers with comprehensive Laravel testing strategies, enabling the creation of robust applications through Test-Driven Development (TDD).
Core Features & Use Cases
- Testing Strategies: Provides guidance on PHPUnit and Pest for unit and feature testing.
- Model Factories: Demonstrates the use of Laravel factories for efficient test data creation.
- HTTP and API Testing: Includes examples of testing Laravel controllers and JSON APIs.
- Authentication Testing: Covers testing authentication using Sanctum and Passport.
- Mocking and Fakes: Offers insights into mocking external services and system components.
- Use Case: If you're developing a Laravel application and want to implement TDD for a seamless and maintainable codebase, this Skill is for you.
Quick Start
To begin TDD for your Laravel application, run the provided PHPUnit configuration file and start writing your tests following the RED-GREEN-REFACTOR cycle.