2FAuth/tests/CreatesApplication.php

23 lines
382 B
PHP
Raw Normal View History

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