v2board/tests/CreatesApplication.php

23 lines
382 B
PHP
Raw Normal View History

2019-10-29 15:33:36 +08:00
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2020-01-11 13:36:52 +08:00
$app = require __DIR__ . '/../bootstrap/app.php';
2019-10-29 15:33:36 +08:00
$app->make(Kernel::class)->bootstrap();
return $app;
}
}