new architecture for tests

This commit is contained in:
2017-07-04 16:15:20 +02:00
parent a9da9acdd2
commit fdb5ec6733
20 changed files with 29 additions and 22 deletions

View File

@@ -68,7 +68,8 @@ trait CustomFieldTestHelper
->getForm();
$kernel->getContainer()->get('twig.loader')
->addPath(__DIR__.'/Fixtures/App/app/Resources/views/', $namespace = 'test');
->addPath($kernel->getContainer()->getParameter('kernel.root_dir').
'/Resources/views/', $namespace = 'test');
$content = $kernel
->getContainer()->get('templating')