API Platform Test Generator

0•

Generates comprehensive PHPUnit functional tests for API Platform resources including CRUD operations, validation, and security.

This skill automates the creation of robust functional test suites for API Platform projects. By analyzing your entities and API resource configurations, it generates boilerplate-free code using ApiTestCase. It intelligently detects your project's specific setup, including serialization groups, filters, security rules, and Zenstruck Foundry factories, to produce tests that cover GET, POST, PUT, PATCH, and DELETE operations, as well as validation constraints, pagination logic, and access control.

主な機能

01Detects project namespaces and PHPUnit configuration automatically
02Supports security testing for authenticated and unauthorized access
03Integration with Zenstruck Foundry for automated data persistence
04Automatic detection of API operations and serialization groups
05Generates validation tests for data constraints and error handling
060 GitHub stars

ユースケース

01Scaffolding a complete test suite for a newly created API resource
02Ensuring regression testing for complex API filters and pagination
03Verifying security access controls across all API endpoints