BookStack/tests/CreatesApplication.php

21 lines
376 B
PHP
Raw Normal View History

2021-06-26 11:23:15 -04:00
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
trait CreatesApplication
{
/**
* Creates the application.
*/
public function createApplication(): Application
{
2021-06-26 11:23:15 -04:00
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
2021-06-26 11:23:15 -04:00
return $app;
}
2021-06-26 11:23:15 -04:00
}