Skip to content

Commit

Permalink
Register the be_wildcard template in the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 17, 2022
1 parent 0442d14 commit 728c12f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Contao\PageModel;
use Contao\System;
use Contao\Template;
use Contao\TemplateLoader;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpFoundation\Request;
Expand Down Expand Up @@ -68,7 +69,8 @@ public function testReturnsWildCardWhenBackendRequest(): void
$container->set('contao.routing.scope_matcher', $scopeMatcher);
$container->set('router', $router);
$container->set('translator', $translator);
$container->setParameter('contao.resources_paths', [__DIR__.'/../../Fixtures']);

TemplateLoader::addFile('be_wildcard', __DIR__.'/../../../src/Resources/contao/templates/backend');

$controller = new RootPageDependentModulesController();
$controller->setContainer($container);
Expand Down
14 changes: 0 additions & 14 deletions core-bundle/tests/Fixtures/templates/be_wildcard.html5

This file was deleted.

0 comments on commit 728c12f

Please sign in to comment.