class TemplateManagerTest extends TestCase
{ protected Environment
$twigEnvironment;
protected Profiler
$profiler;
protected TemplateManager
$templateManager;
protected function setUp(): void
{ parent::
setUp();
$this->profiler =
$this->
createMock(Profiler::
class);
$twigEnvironment =
$this->
mockTwigEnvironment();
$templates =
[ 'data_collector.foo' =>
['foo', '@Foo/Collector/foo.html.twig'
],
'data_collector.bar' =>
['bar', '@Foo/Collector/bar.html.twig'
],
'data_collector.baz' =>
['baz', '@Foo/Collector/baz.html.twig'
],
];
$this->templateManager =
new TemplateManager($this->profiler,
$twigEnvironment,
$templates);
} public function testGetNameOfInvalidTemplate() {