} public function testGetSourceContextThrowsExceptionIfTemplateIsNotFound(): void
{ static::
expectException(LoaderError::
class);
$this->templateLoader->
getSourceContext('@TestTheme/storefront/base.html.twig'
);
} public function testGetSourceContext(): void
{ $this->
importTemplates();
$source =
$this->templateLoader->
getSourceContext('@TestTheme/storefront/base.html.twig'
);
static::
assertEquals(self::FIRST_TEMPLATE,
$source->
getCode());
static::
assertEquals('@TestTheme/storefront/base.html.twig',
$source->
getName());
} public function testGetSourceContextForDeactivatedApp(): void
{ $this->
importTemplates();
static::
expectException(LoaderError::
class);