File tree Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 13
13
before_script :
14
14
- composer self-update
15
15
- composer require symfony/symfony:${SYMFONY_VERSION} --prefer-source
16
- - vendor/symfony-cmf/testing/bin/travis/doctrine_orm.sh
17
16
18
17
script : phpunit --coverage-text
19
18
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 8
8
9
9
<testsuites >
10
10
<testsuite name =" Symfony CmfRoutingBundle Test Suite" >
11
- <directory >./Tests</directory >
11
+ <directory >./Tests/Unit</directory >
12
+ </testsuite >
13
+
14
+ <testsuite name =" phpcr" >
15
+ <directory >./Tests/Functional</directory >
16
+ <exclude >./Tests/Functional/Doctrine/Orm</exclude >
17
+ </testsuite >
18
+
19
+ <testsuite name =" orm" >
20
+ <directory >./Tests/Functional/Doctrine/Orm</directory >
12
21
</testsuite >
13
22
</testsuites >
14
23
28
37
<server name =" KERNEL_DIR" value =" Tests/Resources/app" />
29
38
</php >
30
39
40
+ <listeners >
41
+ <listener class =" Symfony\Cmf\Component\Testing\Phpunit\DatabaseTestListener" />
42
+ </listeners >
43
+
31
44
</phpunit >
You can’t perform that action at this time.
0 commit comments