From 05aaddad64889353366d9b0c8500cfdd940a0688 Mon Sep 17 00:00:00 2001 From: R Mathieson Date: Tue, 9 May 2023 12:48:54 +0100 Subject: [PATCH] StyleCI Fixes --- config/swagger-lume.php | 2 +- tests/ForceHttpsTest.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/swagger-lume.php b/config/swagger-lume.php index de373f9..2eba105 100644 --- a/config/swagger-lume.php +++ b/config/swagger-lume.php @@ -201,7 +201,7 @@ 'constants' => [ 'SWAGGER_LUME_CONST_HOST' => env('SWAGGER_LUME_CONST_HOST', 'http://my-default-host.com'), ], - + /* |-------------------------------------------------------------------------- | Force assets to be loaded over HTTPS (Solves mixed content errors when application is behind a load balancer. diff --git a/tests/ForceHttpsTest.php b/tests/ForceHttpsTest.php index c256637..c3e7f07 100644 --- a/tests/ForceHttpsTest.php +++ b/tests/ForceHttpsTest.php @@ -3,10 +3,11 @@ namespace Tests; class ForceHttpsTest extends LumenTestCase -{ +{ /** @test */ public function defaultFromEnv() - { + { + $this->assertNull(env('SWAGGER_LUME_FORCE_HTTPS')); $this->assertStringContainsString('http://', swagger_lume_asset('swagger-ui.css')); }