Skip to content

Commit d244e8e

Browse files
committed
add missing admin class for orm environment
avoid double bundle registration do it right let it work introduce phpunit from composer
1 parent 0967fc1 commit d244e8e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_script:
1414
- composer self-update
1515
- composer require symfony/symfony:${SYMFONY_VERSION} --prefer-source
1616

17-
script: phpunit --coverage-text
17+
script: vendor/bin/phpunit -c phpunit.xml.dist --coverage-text
1818

1919
notifications:
2020
irc: "irc.freenode.org#symfony-cmf"

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"doctrine/phpcr-bundle": "1.*",
1919
"doctrine/data-fixtures": "1.0.*",
2020
"jackalope/jackalope": "1.*",
21-
"jackalope/jackalope-doctrine-dbal": "1.*"
21+
"jackalope/jackalope-doctrine-dbal": "1.*",
22+
"phpunit/phpunit": "3.7.*"
2223
},
2324
"autoload": {
2425
"psr-0": { "Symfony\\Cmf\\Component\\Testing": "src/" }

src/Symfony/Cmf/Component/Testing/HttpKernel/TestKernel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function init()
7070
'Sonata\jQueryBundle\SonatajQueryBundle',
7171
'Knp\Bundle\MenuBundle\KnpMenuBundle',
7272
'FOS\JsRoutingBundle\FOSJsRoutingBundle',
73+
'Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle',
7374
));
7475

7576
$this->registerBundleSet('sonata_admin_phpcr', array(
@@ -144,7 +145,7 @@ public function requireBundleSet($name)
144145
));
145146
}
146147

147-
$this->requiredBundles[] = new $bundle;
148+
$this->requiredBundles[$bundle] = new $bundle;
148149
}
149150
}
150151

tests/HttpKernel/TestKernelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function bundleSetProvider()
4343
return array(
4444
array(array('default', 'phpcr_odm'), 6),
4545
array(array('default', 'doctrine_orm'), 5),
46+
array(array('default', 'doctrine_orm', 'phpcr_odm'), 6),
4647
);
4748
}
4849

0 commit comments

Comments
 (0)