mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-20 15:54:37 -05:00
The Big Switch
Archived previous version to switch codebase to Laravel framework for the sake of reducing complexity to lower the barrier for entry for potential contributers. Because easier is always better.
This commit is contained in:
21
tests/CreatesApplication.php
Normal file
21
tests/CreatesApplication.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
use Illuminate\Foundation\Application;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*/
|
||||
public function createApplication(): Application
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user