use enabled_locales logic to handle locales (#5017)

* allow to skip locales (here: catalan)
* use enabled_locales and replace app_locales with kimai_locales
* added test to call all reports once for super_admin
This commit is contained in:
Kevin Papst
2024-08-11 17:43:20 +02:00
committed by GitHub
parent 62047c7c01
commit 9e3d243b4b
13 changed files with 69 additions and 29 deletions

View File

@@ -30,7 +30,7 @@ class AppExtensionTest extends TestCase
private function getContainer(): ContainerBuilder
{
$container = new ContainerBuilder();
$container->setParameter('app_locales', 'de|en|he|tr|zh_CN');
$container->setParameter('kimai_locales', ['de', 'en', 'he', 'tr', 'zh_CN']);
$container->setParameter('kernel.project_dir', realpath(__DIR__ . '/../../'));
$container->setParameter('security.role_hierarchy.roles', [
'ROLE_TEAMLEAD' => ['ROLE_USER'],