3.2 TestApplication Structure & .gitignore
Config directory with base files
mkdir -p tests/TestApplication/config touch tests/TestApplication/config/{bundles.php,config.yaml,routes.yaml}
Environment files
touch tests/TestApplication/.env tests/TestApplication/.env.test
Update .gitignore Add TestApplication local files to .gitignore::
/var/ /tests/TestApplication/.env.local /tests/TestApplication/.env.*.local
Optional (only if your plugin needs it)
templates/
- create this if your plugin overrides templates.mkdir -p tests/TestApplication/templates
src/Entity
- create this if your plugin extends Sylius entitiesmkdir -p tests/TestApplication/src/Entity
services_test.php
- create this if you need test-specific service configurationtouch tests/TestApplication/config/services_test.php
Example minimal structure
tests/TestApplication/
├── config/
│ ├── bundles.php
│ ├── config.yaml
│ └── routes.yaml
├── .env
└── .env.test
Add templates/
, Entity/
, or services_test.php
only when needed.
Last updated
Was this helpful?