f0ska / auto-grid-test-bundle
This repository serves as a collection of practical examples for the AutoGrid bundle.
v2.1.0
2026-04-12 18:11 UTC
Requires
- php: >=8.1
- doctrine/doctrine-fixtures-bundle: *
- f0ska/auto-grid-bundle: ^2.1
- fakerphp/faker: *
- symfony/asset-mapper: *
- symfony/framework-bundle: >=6.4
- symfony/mime: *
README
This bundle provides a collection of practical examples and a comprehensive functional test suite for the AutoGridBundle.
Quick Setup
To run the demo application or execute the test suite, follow these steps:
-
Update Database Schema:
php bin/console doctrine:schema:update --force
-
Load Test Data (Fixtures):
php bin/console doctrine:fixtures:load --no-interaction
-
Register Routes: Include the demo routes in your project's
./config/routes.yaml:f0ska_auto_grid_test: resource: '@F0skaAutoGridTestBundle/config/routes.yaml'
-
Access Demos: Navigate to the
/auto-gridroute path in your browser. -
Run Tests:
composer test
Important Notes
- Environment Agnostic: This bundle is designed to work in any standard Symfony environment (
dev,test, etc.). - Functional Testing: The test suite uses
WebTestCase. Ensure your test environment is correctly configured with a database (e.g., inphpunit.xmlor.env.test) to allow these tests to run successfully. - Autoloading: If you are integrating this bundle into an existing project, ensure the
F0ska\AutoGridTestBundle\Testsnamespace is registered in yourcomposer.jsonautoload-devsection.