Created
June 29, 2020 01:14
-
-
Save RiansyahTohamba/ffb993f695bed37f0bff3eb73c52523a to your computer and use it in GitHub Desktop.
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
<?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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment