-<?php namespace Tests;
+<?php
+
+namespace Tests;
class LanguageTest extends TestCase
{
-
protected $langs;
/**
foreach ($this->langs as $lang) {
foreach ($files as $file) {
$loadError = false;
+
try {
$translations = trans(str_replace('.php', '', $file), [], $lang);
} catch (\Exception $e) {
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
+}