X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/3000/head:/tests/LanguageTest.php diff --git a/tests/LanguageTest.php b/tests/LanguageTest.php index d5c6e4532..a9070248e 100644 --- a/tests/LanguageTest.php +++ b/tests/LanguageTest.php @@ -1,8 +1,9 @@ -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 +}