]> BookStack Code Mirror - bookstack/blobdiff - tests/Unit/ConfigTest.php
Updated to Laravel 5.8
[bookstack] / tests / Unit / ConfigTest.php
index 967915af97a8560ef7310fd86853aec01afbe2cf..ec9967227d65629c6dcfbf34f836b9d1e7715d7f 100644 (file)
@@ -50,11 +50,14 @@ class ConfigTest extends TestCase
     protected function checkEnvConfigResult(string $envName, $envVal, string $configKey, string $expectedResult)
     {
         $originalVal = getenv($envName);
+        
         $envString = $envName . (is_null($envVal) ? '' : '=') . ($envVal ?? '');
         putenv($envString);
         $this->refreshApplication();
         $this->assertEquals($expectedResult, config($configKey));
-        putenv($envString = $envName . (empty($originalVal) ? '' : '=') . ($originalVal ?? ''));
+
+        $envString = $envName . (empty($originalVal) ? '' : '=') . ($originalVal ?? '');
+        putenv($envString);
     }
 
 }
\ No newline at end of file