adapt path to new architecture

This commit is contained in:
Julien Fastré 2017-07-04 15:52:52 +02:00
parent b6486ab57b
commit c0e604415a
4 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ class ChillMenuTwigFunctionTest extends KernelTestCase
->getContainer()->get('templating'); ->getContainer()->get('templating');
//load templates in Tests/Resources/views //load templates in Tests/Resources/views
static::$kernel->getContainer()->get('twig.loader') static::$kernel->getContainer()->get('twig.loader')
->addPath(__DIR__.'/../Fixtures/Resources/views/', $namespace = 'tests'); ->addPath(static::$kernel->getContainer()->getParameter('kernel.root_dir')
.'/Resources/views/', $namespace = 'tests');
} }
public function testNormalMenu() public function testNormalMenu()