File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ class AppKernel extends TestKernel
7
7
{
8
8
public function configure ()
9
9
{
10
- $ this ->requireBundleSets (array (
11
- 'default ' ,
12
- 'sonata_admin ' ,
13
- 'phpcr_odm ' ,
14
- ));
10
+ $ this ->requireBundleSet ('default ' );
11
+
12
+ if ('phpcr ' === $ this ->environment ) {
13
+ $ this ->requireBundleSets (array (
14
+ 'phpcr_odm ' ,
15
+ 'sonata_admin ' ,
16
+ ));
17
+ } elseif ('orm ' === $ this ->environment ) {
18
+ $ this ->requireBundleSet ('doctrine_orm ' );
19
+ }
15
20
16
21
$ this ->addBundles (array (
17
22
new \Symfony \Cmf \Bundle \RoutingBundle \CmfRoutingBundle (),
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
$ loader ->import (CMF_TEST_CONFIG_DIR .'/default.php ' );
4
- $ loader ->import (CMF_TEST_CONFIG_DIR .'/phpcr_odm.php ' ); // todo find some way to don't have this in the ORM config
5
4
$ loader ->import (CMF_TEST_CONFIG_DIR .'/doctrine_orm.php ' );
6
- $ loader ->import (CMF_TEST_CONFIG_DIR .'/sonata_admin.php ' );
7
5
$ loader ->import (__DIR__ .'/cmf_routing.yml ' );
8
6
$ loader ->import (__DIR__ .'/cmf_routing.orm.yml ' );
Original file line number Diff line number Diff line change 20
20
},
21
21
"require-dev" : {
22
22
"symfony-cmf/core-bundle" : " 1.0.*" ,
23
- "symfony-cmf/testing" : " 1.0 .*" ,
23
+ "symfony-cmf/testing" : " 1.1 .*" ,
24
24
"sonata-project/doctrine-phpcr-admin-bundle" : " 1.0.*" ,
25
25
"symfony/monolog-bundle" : " 2.2.*" ,
26
26
"doctrine/orm" : " 2.3.*"
Original file line number Diff line number Diff line change 37
37
<server name =" KERNEL_DIR" value =" Tests/Resources/app" />
38
38
</php >
39
39
40
+ <listeners >
41
+ <listener class =" Symfony\Cmf\Component\Testing\Phpunit\DatabaseTestListener" />
42
+ </listeners >
43
+
40
44
</phpunit >
You can’t perform that action at this time.
0 commit comments