Fixed URL gen issue causing incorrect scheme to be used

For #1613
This commit is contained in:
Dan Brown
2019-09-01 12:07:51 +01:00
parent f421a2e1d6
commit 7a4425473b
2 changed files with 14 additions and 1 deletions

View 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=');
}
}