]> BookStack Code Mirror - bookstack/blobdiff - tests/Unit/UrlTest.php
Update errors.php
[bookstack] / tests / Unit / UrlTest.php
index c7d33312c4c0dccc2ca5f2e3f421cb0941703d24..1667f5f7bab683c26b32a01ce9b4434e7679bed7 100644 (file)
@@ -22,4 +22,12 @@ class UrlTest extends TestCase
         putenv('APP_URL=');
     }
 
+    public function test_url_helper_sets_correct_scheme_even_when_request_scheme_is_different()
+    {
+        putenv('APP_URL=https://example.com/');
+        $this->refreshApplication();
+        $this->get('http://example.com/login')->assertSee('https://example.com/dist/styles.css');
+        putenv('APP_URL=');
+    }
+
 }
\ No newline at end of file