f0ska / auto-grid-test-bundle
This repository serves as a collection of practical examples for the AutoGrid bundle.
v2.9.0
2026-05-08 14:17 UTC
Requires
- php: >=8.1
- doctrine/doctrine-fixtures-bundle: ^3.6 || ^4.0
- f0ska/auto-grid-bundle: ^2.9
- fakerphp/faker: ^1.24
- symfony/asset-mapper: ^6.4 || ^7.0 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/mime: ^6.4 || ^7.0 || ^8.0
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 --append
-
Register Routes: Include the demo routes in your project's
./config/routes.yaml:f0ska_auto_grid_test: resource: '@F0skaAutoGridTestBundle/config/routes.yaml'
-
Access Demos: Open
/auto-gridin your browser. This is the main demo entry page for the default Bootstrap 5 template, with navigation to the other examples and a template switcher. -
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\Tests\namespace is registered in yourcomposer.jsonautoload-devsection.