Add test for this translatedLanguages

This commit is contained in:
Pierre Joye
2021-01-30 20:50:20 +07:00
parent cb2c9616d7
commit ea758e9dca
2 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ $grav = function () {
$grav = Grav::instance();
$grav['config']->init();
// This must be set first before the other init
$grav['config']->set('system.languages.supported', ['en', 'fr', 'vi']);
$grav['config']->set('system.languages.default_lang', 'en');
foreach (array_keys($grav['setup']->getStreams()) as $stream) {
@stream_wrapper_unregister($stream);
}