]> BookStack Code Mirror - bookstack/blobdiff - tests/LanguageTest.php
Rolled tri-layout to page edit and book-create
[bookstack] / tests / LanguageTest.php
index bf0ebbeaea37f06a1700eca7f58d00b0674d4b4c..2b3b00ac098360d34a2691323b47487ff6d9e824 100644 (file)
@@ -72,4 +72,13 @@ 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");
+        setting()->putUser($this->getEditor(), 'language', 'ar');
+        $this->get('/');
+        $this->assertTrue(config('app.rtl'), "App RTL config should have been set to true by middleware");
+    }
+
 }
\ No newline at end of file