Removed failing URL test

- 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
This commit is contained in:
Dan Brown 2020-05-23 12:56:31 +01:00
parent 3502abdd49
commit 71e7dd5894
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -5,17 +5,6 @@ use Tests\TestCase;
class UrlTest extends 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() 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() {