mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Apply fixes from StyleCI
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
<?php namespace Tests;
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
class LanguageTest extends TestCase
|
||||
{
|
||||
|
||||
protected $langs;
|
||||
|
||||
/**
|
||||
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user