X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/93ef8c97b6d53eee37bd58f41a64053b0a43ac32..refs/pull/5721/head:/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('/http/source.bookstackapp.com/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'); }); }