mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-26 00:51:26 -05:00
30 lines
734 B
PHP
30 lines
734 B
PHP
|
<?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);
|
||
|
}
|