Skip to content

Commit 0feba27

Browse files
committed
Reflected Testing changes
1 parent a91a77b commit 0feba27

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
before_script:
1414
- composer self-update
1515
- composer require symfony/symfony:${SYMFONY_VERSION} --prefer-source
16-
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
16+
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_orm_dbal.sh
1717

1818
script: phpunit --coverage-text
1919

Tests/Functional/Admin/RouteAdminTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RouteAdminTest extends BaseTestCase
2222
*/
2323
private $errorElement;
2424

25-
protected function setUp()
25+
public function setUp()
2626
{
2727
parent::setUp();
2828
$this->db('PHPCR')->createTestNode();

Tests/Functional/Routing/DynamicRouterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class DynamicRouterTest extends BaseTestCase
3030
public function setUp()
3131
{
3232
parent::setUp();
33+
3334
$this->db('PHPCR')->createTestNode();
3435
$this->createRoute(self::ROUTE_ROOT);
3536

Tests/Resources/app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public function configure()
2020

2121
public function registerContainerConfiguration(LoaderInterface $loader)
2222
{
23-
$loader->load(__DIR__.'/config/config.php');
23+
$loader->load(__DIR__.'/config/config_'.$this->environment.'.php');
2424
}
2525
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cmf_routing:
2+
dynamic:
3+
persistence:
4+
phpcr:
5+
enabled: true
6+
route_basepath: /test/routing

Tests/Resources/app/config/cmf_routing.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ cmf_routing:
1212
Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\RedirectRoute: cmf_routing.redirect_controller:redirectAction
1313
templates_by_class:
1414
Symfony\Cmf\Component\Testing\Document\Content: TestBundle:Content:index.html.twig
15-
persistence:
16-
phpcr:
17-
enabled: true
18-
route_basepath: /test/routing
1915
locales:
2016
- en
2117
- de

Tests/Resources/app/config/config.php renamed to Tests/Resources/app/config/config_phpcr.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
$loader->import(CMF_TEST_CONFIG_DIR.'/phpcr_odm.php');
55
$loader->import(CMF_TEST_CONFIG_DIR.'/sonata_admin.php');
66
$loader->import(__DIR__.'/cmf_routing.yml');
7+
$loader->import(__DIR__.'/cmf_routing.phpcr.yml');

0 commit comments

Comments
 (0)