Skip to content

Commit fac9c3b

Browse files
committed
test(helpers): add environment variable setup in explode env test
- Include setup for APP_DEBUG, APP_NAME, and REDIS_PORT environment variables - Ensure test correctly evaluates environment explosions - Improves test isolation and reliability by setting specific environment context
1 parent 8eb10b5 commit fac9c3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Support/HelpersTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ classes(fn (string $file, string $class): bool => str($class)->startsWith('Recto
3434
})->group(__DIR__, __FILE__);
3535

3636
it('can explode env', function (): void {
37+
putenv('APP_DEBUG=false');
38+
putenv('APP_NAME=Laravel Soar');
39+
putenv('REDIS_PORT=6379');
40+
3741
expect([
3842
'APP_',
3943
'APP_DEBUG',

0 commit comments

Comments
 (0)