$this->cache =
new FilesystemCache($this->cacheDir
);
} protected function tearDown(): void
{ $filesystem =
$this->
getContainer()->
get(Filesystem::
class);
$filesystem->
remove($this->cacheDir
);
} public function testMultipleInheritance(): void
{ [$twig,
$templateFinder] =
$this->
createFinder([ new BundleFixture('Storefront', __DIR__ . '/fixtures/Storefront/'
),
new BundleFixture('TestPlugin1', __DIR__ . '/fixtures/Plugins/TestPlugin1'
),
new BundleFixture('TestPlugin2', __DIR__ . '/fixtures/Plugins/TestPlugin2'
),
]);
$templatePath =
$templateFinder->
find('@Storefront/storefront/frontend/base.html.twig'
);
$template =
$twig->
loadTemplate($twig->
getTemplateClass($templatePath),
$templatePath);
static::
assertSame('Base/TestPlugin1/TestPlugin2',
$template->
render([]));
}