WebTestCase, ApiTestCase), this package reduces boilerplate for generating test classes, factories, and authentication logic.ApiTestCase). Non-Symfony projects (e.g., pure Laravel) are incompatible without significant refactoring.bundles.php, services.yaml must be manually edited). Risk of misconfiguration in CI/CD pipelines.custom_auth config is not implemented (per README).make:test or make:crud?
make:test for feature parity.ApiTestCase with Laravel’s HttpTests.composer require zenstruck/foundry.ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase is available.BenblubFtgBundle to config/bundles.php.MakeFunctionalTest command in services.yaml.php bin/console make:factory User --test).myDefaults() in factories.php bin/console make:ftg (assuming command name; verify via docs).AuthHelperInterface if using custom auth.GET /users, POST /users).AuthHelperInterface for auth-heavy tests.phpunit.xml parallelization).| Risk | Impact | Mitigation |
|---|---|---|
| FTG Deprecation | Tests break with no updates. | Fork and maintain locally. |
| Foundry/Symfony Mismatch | Tests fail due to version conflicts. | Pin versions in composer.json. |
| Auth Configuration | custom_auth not implemented. |
Implement AuthHelperInterface manually. |
| Flaky Tests | Auth tokens or environment issues. | Use AuthHelper defaults or mock auth. |
| Incomplete Coverage | FTG misses edge cases. | Supplement with handwritten tests. |
How can I help you explore Laravel packages today?