-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ce8a1f
commit b1f613e
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
use Illuminate\Contracts\Console\Kernel; | ||
|
||
require_once __DIR__.'/../vendor/autoload.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Bootstrap The Test Environment | ||
|-------------------------------------------------------------------------- | ||
| | ||
| You may specify console commands that execute once before your test is | ||
| run. You are free to add your own additional commands or logic into | ||
| this file as needed in order to help your test suite run quicker. | ||
| | ||
*/ | ||
|
||
$commands = [ | ||
'config:cache', | ||
'event:cache', | ||
]; | ||
|
||
$app = require __DIR__.'/../bootstrap/app.php'; | ||
|
||
$console = tap($app->make(Kernel::class))->bootstrap(); | ||
|
||
foreach ($commands as $command) { | ||
$console->call($command); | ||
} |