фикс
This commit is contained in:
@@ -91,6 +91,20 @@ class LoginScreenNewsFeatureTest extends TestCase
|
||||
$response->assertSee(route('launcher.login-news.show'), false);
|
||||
}
|
||||
|
||||
public function test_admin_page_always_renders_feed_link_with_http_scheme(): void
|
||||
{
|
||||
$response = $this->withServerVariables([
|
||||
'HTTP_X_FORWARDED_PROTO' => 'https',
|
||||
'HTTP_X_FORWARDED_HOST' => 'moon-well.online',
|
||||
'HTTP_X_FORWARDED_PORT' => 443,
|
||||
'HTTP_HOST' => 'moon-well.online',
|
||||
'REMOTE_ADDR' => '127.0.0.1',
|
||||
])->actingAs($this->makeUser(3))->get(route('admin.login-screen-news.index'));
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertSee('http://moon-well.online/launcher/login-news.txt', false);
|
||||
}
|
||||
|
||||
public function test_admin_can_create_update_and_delete_news_item(): void
|
||||
{
|
||||
$admin = $this->makeUser(3);
|
||||
|
||||
Reference in New Issue
Block a user