$container->
register('twig.loader.native_filesystem', FilesystemLoader::
class);
$container->
setParameter('kernel.bundles_metadata',
[]);
$container->
setParameter('kernel.environment', 'dev'
);
$container->
setParameter('kernel.project_dir', '/project'
);
$connectionMock =
$this->
createMock(Connection::
class);
$container->
set(Connection::
class,
$connectionMock);
$connectionMock->
expects(static::
once())->
method('fetchAllAssociative'
)->
willReturn([]);
$entityCompilerPass =
new TwigLoaderConfigCompilerPass();
$entityCompilerPass->
process($container);
} public function testDevModeNoPluginsButApps(): void
{ /** @var ContainerBuilder&MockObject $container */
$container =
new ContainerBuilder();
$container->
setParameter('kernel.bundles_metadata',
[]);
$container->
setParameter('kernel.environment', 'dev'
);
$container->
setParameter('kernel.project_dir', '/project'
);