Improve .env file checking to not validate SSL certificates

This commit is contained in:
Brady Wetherington
2024-07-23 16:03:02 +01:00
parent 30835fe9ba
commit 5eea08088d
2 changed files with 11 additions and 4 deletions
@@ -2,6 +2,7 @@
namespace Tests\Feature\Settings;
use App\Http\Controllers\SettingsController;
use Illuminate\Database\Events\QueryExecuted;
use Illuminate\Http\Client\ConnectionException;
use Illuminate\Http\Client\Request;
@@ -301,4 +302,11 @@ class ShowSetUpPageTest extends TestCase
$this->assertSeeDirectoryPermissionError(false);
}
public function testInvalidTLSCertsOkWhenCheckingForEnvFile()
{
//set the weird bad SSL cert place - https://self-signed.badssl.com
$this->assertTrue((new SettingsController())->dotEnvFileIsExposed());
}
}