$this->templateLoader->
exists('@StorefrontTheme/storefront/base.html.twig'
) );
} public function testTemplateLoadingIsCachedWithoutDatabaseTemplates(): void
{ $connection =
$this->
createMock(Connection::
class);
$connection->
expects(static::
once()) ->
method('fetchAllAssociative'
) ->
willReturn([]);
$templateLoader =
new EntityTemplateLoader($connection, 'prod'
);
static::
assertFalse($templateLoader->
exists('@Storefront/storefront/base.html.twig'
));
static::
assertFalse($templateLoader->
exists('@Storefront/storefront/test.html.twig'
));
} private function importTemplates(): void
{ $this->templateRepository->
upsert([ [ 'id' =>
$this->template1Id,
'path' => 'storefront/base.html.twig',