Skip to content

Commit

Permalink
test: fix key generate
Browse files Browse the repository at this point in the history
  • Loading branch information
epessine committed Nov 18, 2023
1 parent db7c082 commit 86c0fc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tests;

use Illuminate\Contracts\Config\Repository;
use Illuminate\Support\Facades\Artisan;
use Orchestra\Testbench\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
Expand All @@ -11,8 +11,6 @@ abstract class TestCase extends BaseTestCase

protected function defineEnvironment($app)
{
tap($app['config'], function (Repository $config) {
$config->set('app.key', str()->random(16));
});
tap($app['config'], fn () => Artisan::call('key:generate'));
}
}

0 comments on commit 86c0fc4

Please sign in to comment.