Skip to content

Commit 8fea01a

Browse files
committed
Merge pull request #52 from ElectricMaxxx/master
avoid double bundle registration
2 parents 8506906 + d244e8e commit 8fea01a

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function requireBundleSet($name)
145145
));
146146
}
147147

148-
$this->requiredBundles[] = new $bundle;
148+
$this->requiredBundles[$bundle] = new $bundle;
149149
}
150150
}
151151

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)