api-platform:make-test

Generate PHPUnit functional tests for API Platform resource operations.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill api-platform-make-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-platform:make-test
Source: https://github.com/atournayre/claude-personas/tree/main/api-platform/skills/make-test
Command: npx skills add https://github.com/atournayre/claude-personas --skill api-platform-make-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of functional tests for API Platform resources, significantly reducing the manual effort required for writing comprehensive test suites.

Core Features & Use Cases

  • Automated Test Generation: Creates PHPUnit tests for CRUD operations, validation, filters, and security configurations.
  • Resource Analysis: Intelligently analyzes resource files to infer necessary test structures.
  • Use Case: When developing a new API resource in API Platform, use this Skill to quickly scaffold a robust test file, ensuring core functionalities are covered from the start.

Quick Start

Use the api-platform:make-test skill to generate tests for the 'Product' resource.

Frequently Asked Questions about api-platform:make-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PHPUnit tests for API Platform resources automatically?

You can generate PHPUnit tests for API Platform resources by analyzing resource definitions to scaffold test files covering CRUD operations, validation, filters, and security configurations. The generated tests use ApiTestCase to automate functional testing.

What is the best way to automate API Platform test creation for CRUD operations?

The best way to automate API Platform test creation is to use a code generation tool that analyzes entity structures and API configurations to produce functional tests for GET, POST, PUT, PATCH, and DELETE operations.

Can I automatically generate test cases for API Platform security and validation rules?

Yes, you can generate test cases for API Platform security and validation rules by analyzing resource files to infer the necessary test structures and automatically scaffolding the corresponding security and validation test scenarios.

Does API Platform test generation work with PHPUnit and ApiTestCase?

Yes, API Platform test generation works seamlessly with PHPUnit and ApiTestCase. It automates the creation of test files specifically designed to run functional tests for your API resources using these frameworks.

Do I need to manually define test structures for each API Platform entity?

No, you do not need to manually define test structures for each API Platform entity. The generation process intelligently analyzes resource definitions to infer and tailor the necessary test structures for specific entity configurations.

Why generate API Platform tests instead of writing them manually?

Generating API Platform tests instead of writing them manually significantly reduces the manual effort required for writing comprehensive test suites and ensures core functionalities are covered from the start of resource development.