Skip to content

Commit 2111eb4

Browse files
committed
test: set test env key
1 parent f58fdb9 commit 2111eb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/TestCase.php

+8
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
namespace Tests;
44

5+
use Illuminate\Contracts\Config\Repository;
56
use Orchestra\Testbench\TestCase as BaseTestCase;
67

78
abstract class TestCase extends BaseTestCase
89
{
910
protected $enablesPackageDiscoveries = true;
11+
12+
protected function defineEnvironment($app)
13+
{
14+
tap($app['config'], function (Repository $config) {
15+
$config->set('key', str()->random(16));
16+
});
17+
}
1018
}

0 commit comments

Comments
 (0)