ldc-dam/tests/CreatesApplication.php

23 lines
382 B
PHP
Raw Normal View History

2019-05-09 15:00:05 +02:00
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2022-04-19 16:07:27 +02:00
$app = require __DIR__ . '/../bootstrap/app.php';
2019-05-09 15:00:05 +02:00
$app->make(Kernel::class)->bootstrap();
return $app;
}
}