Files
im-demo-server/tests/bootstrap.php

34 lines
828 B
PHP
Raw Normal View History

2019-07-05 14:20:33 +10:00
<?php
use Illuminate\Contracts\Console\Kernel;
require_once __DIR__.'/../vendor/autoload.php';
2019-09-05 16:10:59 +02:00
if (file_exists($_SERVER['APP_CONFIG_CACHE'])) {
unlink($_SERVER['APP_CONFIG_CACHE']);
}
2019-07-05 14:20:33 +10:00
/*
|--------------------------------------------------------------------------
2019-07-30 16:40:52 -05:00
| Bootstrap The Test Environment
2019-07-05 14:20:33 +10:00
|--------------------------------------------------------------------------
|
2019-07-30 16:40:52 -05:00
| 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.
2019-07-05 14:20:33 +10:00
|
*/
$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);
}