From ea50dc8668eedd2161a8846e4e29a6e1efa7f19c Mon Sep 17 00:00:00 2001 From: Pushpak Rangaiah Date: Fri, 27 Jan 2017 19:30:01 +0530 Subject: [PATCH] Fix Testing environment file load `.env.testing` was not loading while running phpunit Appeared in [this commit](https://github.com/laravel/framework/commit/a00b60177b57decd81944a2eaf39a4c93e06864a) --- .../Foundation/Bootstrap/LoadEnvironmentVariables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php index b6707129d360..6ec3e8029353 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php @@ -44,7 +44,7 @@ protected function checkForSpecificEnvironmentFile($app) ); } - if (! env('APP_ENV') || empty($file)) { + if (! env('APP_ENV')) { return; }