mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
create tests (with app/kernel fixtures) for menu composer #217
This commit is contained in:
11
Tests/Fixtures/App/config/config.yml
Normal file
11
Tests/Fixtures/App/config/config.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
framework:
|
||||
secret: Not very secret
|
||||
router: { resource: "%kernel.root_dir%/config/routing.yml" }
|
||||
form: true
|
||||
csrf_protection: true
|
||||
session: ~
|
||||
default_locale: fr
|
||||
translator: { fallback: fr }
|
||||
profiler: { only_exceptions: false }
|
||||
templating:
|
||||
engines: ['twig']
|
7
Tests/Fixtures/App/config/config_test.yml
Normal file
7
Tests/Fixtures/App/config/config_test.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
imports:
|
||||
- { resource: config.yml }
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.filesystem
|
24
Tests/Fixtures/App/config/routing.yml
Normal file
24
Tests/Fixtures/App/config/routing.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
hello_bundle:
|
||||
resource: "@CLChillMainBundle/Resources/config/routing.yml"
|
||||
|
||||
chill_main_dummy_0:
|
||||
pattern: /dummy
|
||||
defaults: { _controller: CLChillMainBundle:Default:index }
|
||||
options:
|
||||
menus:
|
||||
dummy0:
|
||||
order: 50
|
||||
label: 'test0'
|
||||
dummy1:
|
||||
order: 50
|
||||
label: test dummy 1
|
||||
|
||||
chill_main_dummy_1:
|
||||
pattern: /dummy1
|
||||
defaults: { _controller: CLChillMainBundle:Default:index }
|
||||
options:
|
||||
menus:
|
||||
dummy0:
|
||||
order: 50
|
||||
label: 'test1'
|
||||
helper: 'great helper'
|
Reference in New Issue
Block a user