X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/39fcf3a68f25638af07c13244b5778098dfc83a1..fc10520e101021a873c2635e7880d28ba614742f:/tests/UrlTest.php diff --git a/tests/UrlTest.php b/tests/UrlTest.php index 13f9d9e0c..c1a4d4f1c 100644 --- a/tests/UrlTest.php +++ b/tests/UrlTest.php @@ -3,21 +3,19 @@ namespace Tests; use BookStack\Http\Request; -use function request; -use function url; class UrlTest extends TestCase { public function test_url_helper_takes_custom_url_into_account() { - $this->runWithEnv('APP_URL', 'http://example.com/bookstack', function () { + $this->runWithEnv(['APP_URL' => 'http://example.com/bookstack'], function () { $this->assertEquals('http://example.com/bookstack/books', url('/books')); }); } public function test_url_helper_sets_correct_scheme_even_when_request_scheme_is_different() { - $this->runWithEnv('APP_URL', 'https://example.com/', function () { + $this->runWithEnv(['APP_URL' => 'https://example.com/'], function () { $this->get('http://example.com/login')->assertSee('https://example.com/dist/styles.css'); }); }