Skip to content

Commit

Permalink
Merge pull request #12 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Updated tests
  • Loading branch information
Andrey Helldar authored Mar 19, 2022
2 parents 6a80bb5 + 21c1c76 commit b5fef3a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/WithEnvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function testWithEnv()

protected function copyFixture()
{
File::copy(__DIR__ . '/../fixtures/source/sync-env', $this->targetPath());
File::copy($this->path . '/sync-env', $this->targetPath());
}
}
14 changes: 10 additions & 4 deletions tests/fixtures/expected/expected-sync
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
APP_DEBUG=false
APP_ENV=production
APP_KEY=
APP_DEBUG=true
APP_ENV=local
APP_KEY=foo
APP_NAME=Laravel
APP_URL=http://localhost
APP_URL=https://example.com

DB_CONNECTION=mysql
DB_DATABASE=default
DB_HOST=mysql
DB_PASSWORD=root
DB_USERNAME=root
10 changes: 8 additions & 2 deletions tests/fixtures/source/sync-env
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
APP_DEBUG=true
APP_ENV=testing
APP_KEY=
APP_ENV=local
APP_KEY=foo
APP_NAME=Laravel
APP_URL=https://example.com

DB_CONNECTION=mysql
DB_DATABASE=default
DB_HOST=mysql
DB_PASSWORD=root
DB_USERNAME=root

CUSTOM_KEY_1=
CUSTOM_KEY_2=
CUSTOM_KEY_3=

0 comments on commit b5fef3a

Please sign in to comment.