Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit b5fef3a

Browse files
author
Andrey Helldar
authored
Merge pull request #12 from TheDragonCode/2.x
Updated tests
2 parents 6a80bb5 + 21c1c76 commit b5fef3a

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

Diff for: tests/Unit/WithEnvTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function testWithEnv()
3131

3232
protected function copyFixture()
3333
{
34-
File::copy(__DIR__ . '/../fixtures/source/sync-env', $this->targetPath());
34+
File::copy($this->path . '/sync-env', $this->targetPath());
3535
}
3636
}

Diff for: tests/fixtures/expected/expected-sync

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
APP_DEBUG=false
2-
APP_ENV=production
3-
APP_KEY=
1+
APP_DEBUG=true
2+
APP_ENV=local
3+
APP_KEY=foo
44
APP_NAME=Laravel
5-
APP_URL=http://localhost
5+
APP_URL=https://example.com
6+
7+
DB_CONNECTION=mysql
8+
DB_DATABASE=default
9+
DB_HOST=mysql
10+
DB_PASSWORD=root
11+
DB_USERNAME=root

Diff for: tests/fixtures/source/sync-env

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
APP_DEBUG=true
2-
APP_ENV=testing
3-
APP_KEY=
2+
APP_ENV=local
3+
APP_KEY=foo
44
APP_NAME=Laravel
55
APP_URL=https://example.com
66

7+
DB_CONNECTION=mysql
8+
DB_DATABASE=default
9+
DB_HOST=mysql
10+
DB_PASSWORD=root
11+
DB_USERNAME=root
12+
713
CUSTOM_KEY_1=
814
CUSTOM_KEY_2=
915
CUSTOM_KEY_3=

0 commit comments

Comments
 (0)