{"enrichment":{"faq":[{"a":"laravel-testing is a skill for writing feature and unit tests in Laravel 13 applications. It supports both Pest PHP 4 and PHPUnit 12, automatically detecting your project's testing framework and providing syntax examples for both side-by-side. The skill covers 24 rules spanning HTTP endpoints, model factories, database assertions, service mocking, and authentication patterns to help you write fast, readable tests.","q":"What is laravel-testing and which frameworks does it support?"},{"a":"laravel-testing helps you evaluate both frameworks so you can make an informed choice. Pest PHP 4 offers expressive, readable syntax with describe/it blocks, while PHPUnit 12 provides traditional assertion methods. The skill provides side-by-side examples for both, letting you see how the same test looks in each framework and decide which aligns better with your team's preferences and project needs.","q":"How do I choose between Pest PHP 4 and PHPUnit 12 for testing?"},{"a":"laravel-testing covers creating model factories and test data with relationships. You define factories for your models, then use them in tests to generate realistic data with associated relationships. The skill shows you how to chain factory calls, set specific attributes, and create related records\u2014enabling you to build complex test scenarios quickly without manual database setup.","q":"How to write tests in laravel with model factories and relationships?"},{"a":"laravel-testing teaches you to verify both database state and HTTP responses. For database assertions, you use methods to check that records exist, were created, or were soft-deleted. For HTTP responses, you assert status codes, JSON structure, and response content. The skill covers both Pest and PHPUnit syntax, so you can confidently verify your application's behavior at the database and API levels.","q":"How do I assert database state and HTTP responses in Laravel tests?"},{"a":"Yes. laravel-testing covers mocking and faking Laravel services including Mail, Queue, and Events. You learn how to prevent actual emails from sending during tests, assert that jobs were queued, and verify events were dispatched. The skill provides examples for both Pest PHP 4 and PHPUnit 12, letting you fake these services and focus on testing your application logic in isolation.","q":"Can laravel-testing help me mock Mail, Queue, and Events?"},{"a":"laravel-testing guides you through test organization patterns, including how to structure feature and unit tests, use database transactions for isolation, and organize test datasets. It covers authentication testing for APIs (including Sanctum tokens), soft delete scenarios, and parameterized tests. The skill helps you build a maintainable test suite that scales with your Laravel 13 application.","q":"What testing patterns and organization does laravel-testing recommend?"}],"shadow_tags":["test-framework-selection","http-endpoint-testing","factory-data-generation","assertion-patterns","service-mocking","test-structure-organization","api-authentication-testing","database-state-verification"],"summary_rewrite":"This skill guides you through testing Laravel 13 applications with either Pest PHP 4 or PHPUnit 12, covering 24 rules across HTTP endpoints, model factories, database state verification, service mocking, and authentication patterns. It detects your project's testing framework automatically and provides syntax examples for both frameworks side-by-side, so you can write fast, readable tests regardless of which one you use."},"files":[{"bytes":7302,"path":"skills/laravel-testing/SKILL.md","sha256":"9be0e9cd0546276e08e88379de2ae35d3d54d8ffb817a7f8ccf6d7429dccb40e","url":"https://skillfed.io/files/AsyrafHussin/agent-skills/laravel-testing/f4d048c3/SKILL.md"}],"id":"AsyrafHussin/agent-skills/laravel-testing","links":{"html":"https://skillfed.io/AsyrafHussin/agent-skills/laravel-testing","md":"https://skillfed.io/AsyrafHussin/agent-skills/laravel-testing.md","repo":"https://github.com/AsyrafHussin/agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":9,"language":null,"last_updated":"2026-05-16","license":"MIT","name":"laravel-testing","publisher":"AsyrafHussin","stars":58},"relations":{"similar":[{"id":"affaan-m/ECC/laravel-tdd"},{"id":"iSerter/laravel-claude-agents/laravel-tdd"},{"id":"personamanagmentlayer/pcl/php-expert"},{"id":"Jeffallan/claude-skills/laravel-specialist"},{"id":"spatie/freek.dev/pest-testing"},{"id":"irahardianto/awesome-agv/laravel-idioms"},{"id":"bagisto/agent-skills/pest-testing"},{"id":"xobotyi/cc-foundry/pest"},{"id":"Pixel-Process-UG/superkit-agents/laravel-specialist"},{"id":"softspark/ai-toolkit/php-rules"}]},"slug":{"owner":"AsyrafHussin","repo":"agent-skills","skill":"laravel-testing"},"version":"f4d048c3"}
