Skip to content

Commit a1444ab

Browse files
committed
Added hack for CMF testing component
1 parent 789074c commit a1444ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/Resources/app/AppKernel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use DTL\Bundle\PhpcrMigrations\Tests\Resources\Bundle\TwoTestBundle\TwoTestBundle;
1515
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
1616
use Symfony\Component\Config\Loader\LoaderInterface;
17+
use Symfony\Component\DependencyInjection\ContainerBuilder;
1718

1819
class AppKernel extends TestKernel
1920
{
@@ -37,4 +38,10 @@ public function registerContainerConfiguration(LoaderInterface $loader)
3738
$loader->import(CMF_TEST_CONFIG_DIR . '/phpcr_odm.php');
3839
$loader->load(__DIR__ . '/config/config.yml');
3940
}
41+
42+
protected function prepareContainer(ContainerBuilder $container)
43+
{
44+
parent::prepareContainer($container);
45+
$container->setParameter('cmf_testing.bundle_fqn', 'DTL\Bundle\PhpcrMigrations\PhpcrMigrationsBundle');
46+
}
4047
}

0 commit comments

Comments
 (0)