mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Locales: More use of locale objects, Addressed failing tests
This commit is contained in:
@ -215,7 +215,7 @@ class UserManagementTest extends TestCase
|
||||
{
|
||||
$langs = ['en', 'fr', 'hr'];
|
||||
foreach ($langs as $lang) {
|
||||
config()->set('app.locale', $lang);
|
||||
config()->set('app.default_locale', $lang);
|
||||
$resp = $this->asAdmin()->get('/settings/users/create');
|
||||
$this->withHtml($resp)->assertElementExists('select[name="language"] option[value="' . $lang . '"][selected]');
|
||||
}
|
||||
|
Reference in New Issue
Block a user