@@ -46,7 +46,7 @@ public function buildPath(string $path = ''): string
4646*/
4747it ('cleans configured keys ' , function () use ($ buildPath , $ command ) {
4848
49- (new Filesystem )->dumpFile ("{$ buildPath }/.env " , <<<'TXT'
49+ (new Filesystem )->dumpFile ("{$ buildPath }/app/ .env " , <<<'TXT'
5050 FOO=BAR
5151 BAZ=ZAH
5252 TXT);
@@ -57,34 +57,34 @@ public function buildPath(string $path = ''): string
5757
5858 $ command ->cleanEnvFile ();
5959
60- expect (file_get_contents ("{$ buildPath }/.env " ))
60+ expect (file_get_contents ("{$ buildPath }/app/ .env " ))
6161 ->not ->toContain ('FOO ' )
6262 ->toContain ('BAZ ' );
6363});
6464
6565it ('removes comments ' , function () use ($ buildPath , $ command ) {
6666
67- (new Filesystem )->dumpFile ("{$ buildPath }/.env " , <<<'TXT'
67+ (new Filesystem )->dumpFile ("{$ buildPath }/app/ .env " , <<<'TXT'
6868 KEEP_ME=hello
6969 # REMOVE_ME=hello
7070 TXT);
7171
7272 $ command ->cleanEnvFile ();
7373
74- expect (file_get_contents ("{$ buildPath }/.env " ))
74+ expect (file_get_contents ("{$ buildPath }/app/ .env " ))
7575 ->not ->toContain ('REMOVE_ME ' )
7676 ->toContain ('KEEP_ME ' );
7777});
7878
7979it ('injects defaults ' , function () use ($ buildPath , $ command ) {
80- (new Filesystem )->dumpFile ("{$ buildPath }/.env " , <<<'TXT'
80+ (new Filesystem )->dumpFile ("{$ buildPath }/app/ .env " , <<<'TXT'
8181 LOG_CHANNEL=test
8282 LOG_STACK=test
8383 TXT);
8484
8585 $ command ->cleanEnvFile ();
8686
87- expect (file_get_contents ("{$ buildPath }/.env " ))
87+ expect (file_get_contents ("{$ buildPath }/app/ .env " ))
8888 ->not ->toContain ('LOG_CHANNEL=test ' )
8989 ->not ->toContain ('LOG_STACK=test ' )
9090 ->toContain ('LOG_CHANNEL=stack ' )
@@ -95,7 +95,7 @@ public function buildPath(string $path = ''): string
9595it ('cleans default cleanup keys ' , function () use ($ buildPath , $ command ) {
9696
9797 // NOTE: This checks the default cleanup_env_keys are cleaned. So we can sleep at night.
98- (new Filesystem )->dumpFile ("{$ buildPath }/.env " , <<<'TXT'
98+ (new Filesystem )->dumpFile ("{$ buildPath }/app/ .env " , <<<'TXT'
9999 SAFE_VARIABLE=test
100100 AWS_WILDCARD=test
101101 GITHUB_WILDCARD=test
@@ -109,7 +109,7 @@ public function buildPath(string $path = ''): string
109109
110110 $ command ->cleanEnvFile ();
111111
112- expect (file_get_contents ("{$ buildPath }/.env " ))
112+ expect (file_get_contents ("{$ buildPath }/app/ .env " ))
113113 ->toContain ('SAFE_VARIABLE=test ' )
114114 ->not ->toContain ('AWS_WILDCARD ' )
115115 ->not ->toContain ('GITHUB_WILDCARD ' )
0 commit comments