]> BookStack Code Mirror - bookstack/commitdiff
Removed failing URL test
authorDan Brown <redacted>
Sat, 23 May 2020 11:56:31 +0000 (12:56 +0100)
committerDan Brown <redacted>
Sat, 23 May 2020 11:56:31 +0000 (12:56 +0100)
- Was found that the test was not testing the actual situation anyway.
- A work-around in the request creation, within testing, just happened
 to result in the desired outcome.

For reference: https://github.com/laravel/framework/pull/32345

tests/Unit/UrlTest.php

index feff4797718baa4904dce7d80dcbaf4aca5180a6..b9f485da13f0743178049d2e314db04fccd18536 100644 (file)
@@ -5,17 +5,6 @@ use Tests\TestCase;
 class UrlTest extends TestCase
 {
 
-    public function test_request_url_takes_custom_url_into_account()
-    {
-        config()->set('app.url', 'http://example.com/bookstack');
-        $this->get('/');
-        $this->assertEquals('http://example.com/bookstack', request()->getUri());
-
-        config()->set('app.url', 'http://example.com/docs/content');
-        $this->get('/');
-        $this->assertEquals('http://example.com/docs/content', request()->getUri());
-    }
-
     public function test_url_helper_takes_custom_url_into_account()
     {
         $this->runWithEnv('APP_URL', 'http://example.com/bookstack', function() {