This skill provides expert patterns and implementation guidance for writing robust functional tests in Symfony applications powered by API Platform. It leverages ApiTestCase and Zenstruck Foundry to help developers efficiently test CRUD operations, complex filtering, pagination, and secure endpoints. Whether you need to validate Hydra/JSON-LD response structures, verify JWT-based authentication, or ensure JSON Schema compliance, this skill provides the specific code snippets and best practices needed to maintain a high-quality API.
주요 기능
01Strict JSON Schema and Hydra-specific response validation
02Automated test data generation using Zenstruck Foundry factories
03Authentication and authorization test scenarios including owner-only access
0421 GitHub stars
05Comprehensive coverage for filtering, pagination, and sorting logic
06Functional testing patterns for API collections and individual items
사용 사례
01Implementing Test-Driven Development (TDD) for new API Platform resources
02Ensuring security constraints and RBAC logic work correctly on API endpoints
03Verifying API response structures and schema compliance after system updates