This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +52
-1
lines changed
Resources/Fixtures/config Expand file tree Collapse file tree 6 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 2
2
composer.lock
3
3
composer.phar
4
4
Tests /Resources /app /cache
5
+ Tests /Resources /app /logs
Original file line number Diff line number Diff line change 8
8
<xsd : element name =" config" type =" config" />
9
9
10
10
<xsd : complexType name =" config" >
11
+ <xsd : sequence >
12
+ <xsd : element name =" persistence" type =" persistence" minOccurs =" 0" />
13
+ </xsd : sequence >
14
+ </xsd : complexType >
15
+
16
+ <xsd : complexType name =" persistence" >
17
+ <xsd : sequence >
18
+ <xsd : element name =" phpcr" type =" phpcr" minOccurs =" 0" />
19
+ </xsd : sequence >
20
+ </xsd : complexType >
21
+
22
+ <xsd : complexType name =" phpcr" >
23
+ <xsd : attribute name =" enabled" type =" xsd:boolean" />
11
24
<xsd : attribute name =" session-name" type =" xsd:string" />
12
25
</xsd : complexType >
13
26
</xsd : schema >
Original file line number Diff line number Diff line change
1
+ <config xmlns =" http://cmf.symfony.com/schema/dic/treebrowser" >
2
+ </config >
Original file line number Diff line number Diff line change
1
+ <config xmlns =" http://cmf.symfony.com/schema/dic/treebrowser" >
2
+ <persistence >
3
+ <phpcr
4
+ session-name =" default"
5
+ />
6
+ </persistence >
7
+ </config >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ * This file is part of the Symfony CMF package.
4
+ *
5
+ * (c) 2011-2013 Symfony CMF
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+
11
+ namespace Symfony \Cmf \Bundle \TreeBrowserBundle \Tests \Unit \DependencyInjection ;
12
+
13
+ use Symfony \Cmf \Component \Testing \Unit \XmlSchemaTestCase ;
14
+
15
+ class XmlSchemaTest extends XmlSchemaTestCase
16
+ {
17
+ public function testSchema ()
18
+ {
19
+ $ xmlFiles = array_map (function ($ file ) {
20
+ return __DIR__ .'/../../Resources/Fixtures/config/ ' .$ file ;
21
+ }, array (
22
+ 'config1.xml ' ,
23
+ 'config2.xml ' ,
24
+ ));
25
+
26
+ $ this ->assertSchemaAcceptsXml ($ xmlFiles , __DIR__ .'/../../../Resources/config/schema/treebrowser-1.0.xsd ' );
27
+ }
28
+ }
Original file line number Diff line number Diff line change 18
18
"friendsofsymfony/jsrouting-bundle" : " ~1.1"
19
19
},
20
20
"require-dev" : {
21
- "symfony-cmf/testing" : " 1.0 .*"
21
+ "symfony-cmf/testing" : " 1.1 .*"
22
22
},
23
23
"suggest" : {
24
24
"doctrine/phpcr-bundle" : " 1.0.*" ,
You can’t perform that action at this time.
0 commit comments