Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rowasc committed Sep 25, 2019
2 parents 6a0889d + 194d98a commit 83e432a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/PlatformVerifier/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
class Env
{
private static $NO_ENV = "Required environment variables missing and no environment file found.";
private static $NO_ENV_EXPLAINER = "Please copy the '.env.example' file into a file named '.env' and set your missing variables.";
private static $NO_ENV_EXPLAINER = "Please copy the '.env.example' file into a file named '.env' " .
"and set your missing variables.";
private static $REQUIRED_ENV_KEYS = [
"DB_CONNECTION" => "Please set `DB_CONNECTION=mysql` in the environment or .env file.",
"DB_HOST" => "Please set the address of your database in the DB_HOST key",
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/App/PlatformVerifier/EnvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public function testMissingEnvFileError()
$this->assertGreaterThanOrEqual(2, count($errors));
$this->assertContains([
'message' => 'Required environment variables missing and no environment file found.',
'explainer' => "Please copy the '.env.example' file into a file named '.env' and set your missing variables."
'explainer' => "Please copy the '.env.example' file into a file named '.env' " .
"and set your missing variables."
], $errors);
}

Expand All @@ -62,7 +63,8 @@ public function testSuccessEnvKeys()

$this->assertEquals(['success' => [
[
'message' => 'Good job! you have configured your system environment and/or .env file with all the required keys.',
'message' => 'Good job! you have configured your system environment and/or .env file ' .
'with all the required keys.',
'explainer' => null
]
]], $result);
Expand Down

0 comments on commit 83e432a

Please sign in to comment.