X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/heads/svg_image:/tests/LanguageTest.php diff --git a/tests/LanguageTest.php b/tests/LanguageTest.php index d5c6e4532..ef44af0ee 100644 --- a/tests/LanguageTest.php +++ b/tests/LanguageTest.php @@ -1,14 +1,15 @@ -langs = array_diff(scandir(resource_path('lang')), ['..', '.']); @@ -61,6 +62,7 @@ class LanguageTest extends TestCase foreach ($this->langs as $lang) { foreach ($files as $file) { $loadError = false; + try { $translations = trans(str_replace('.php', '', $file), [], $lang); } catch (\Exception $e) { @@ -74,10 +76,9 @@ class LanguageTest extends TestCase public function test_rtl_config_set_if_lang_is_rtl() { $this->asEditor(); - $this->assertFalse(config('app.rtl'), "App RTL config should be false by default"); + $this->assertFalse(config('app.rtl'), 'App RTL config should be false by default'); setting()->putUser($this->getEditor(), 'language', 'ar'); $this->get('/'); - $this->assertTrue(config('app.rtl'), "App RTL config should have been set to true by middleware"); + $this->assertTrue(config('app.rtl'), 'App RTL config should have been set to true by middleware'); } - -} \ No newline at end of file +}