3.11 Templates

If your plugin uses custom Twig templates or overrides templates from other bundles, you need to adjust their location for the new TestApplication structure.

1. Move templates

  • Any custom Twig templates previously located in:

tests/Application/templates/

or overrides of bundle templates should now be moved to:

tests/TestApplication/templates/
  • Keep the same folder structure inside templates/ to maintain namespace and path consistency.

2. Remove unnecessary overrides

  • Overrides of _scripts.html.twig or _styles.html.twig for:

    • SyliusAdminBundle

    • SyliusShopBundle

    are no longer necessary in the new TestApplication structure.

  • You can safely remove them unless your plugin adds truly custom scripts or styles that are not already included elsewhere.

    • Note: entrypoint.js files in assets/admin and assets/shop are already included automatically, so you typically do not need to override _scripts or _styles.

Last updated

Was this helpful?