Skip to content

Commit 4c0ac18

Browse files
committed
test more of the xml config schema
1 parent cedde84 commit 4c0ac18

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Tests/Resources/Fixtures/config/config3.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<config xmlns="http://cmf.symfony.com/schema/dic/routing">
2-
32
<dynamic>
43
<persistence>
54
<phpcr
65
manager-name="default"
6+
route-basepath="/cms/routes"
7+
content-basepath="/cms/content"
8+
use-sonata-admin="auto"
79
/>
810
</persistence>
911
</dynamic>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<config xmlns="http://cmf.symfony.com/schema/dic/routing">
2+
3+
<dynamic
4+
route-collection-limit="42"
5+
generic-controller="my-controller"
6+
default-controller="other-controller"
7+
uri-filter-regexp=".*"
8+
route-provider-service-id="my-provider"
9+
content-repository-service-id="my-repo"
10+
>
11+
<controller-by-type type="type-a">type-controller</controller-by-type>
12+
<controller-by-class class="class-a">class-controller</controller-by-class>
13+
<template-by-class class="class-b">template-b</template-by-class>
14+
<route-filter-by-id id="my-filter">20</route-filter-by-id>
15+
<locale>en</locale>
16+
<locale>de</locale>
17+
</dynamic>
18+
</config>

Tests/Unit/DependencyInjection/XmlSchemaTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function testSchema()
3535
'config1.xml',
3636
'config2.xml',
3737
'config3.xml',
38+
'config4.xml',
3839
));
3940

4041
$this->assertSchemaAcceptsXml($xmlFiles, $this->schemaPath);

0 commit comments

Comments
 (0)