misc_pterodactyl-panel/tests/CreatesApplication.php

23 lines
394 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2017-06-18 01:52:32 +00:00
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}