firefly-iii/tests/CreatesApplication.php

33 lines
650 B
PHP
Raw Normal View History

2017-02-05 08:42:00 -06:00
<?php
2017-08-10 22:36:05 -05:00
/**
* CreatesApplication.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
2017-02-05 08:42:00 -06:00
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2017-03-05 04:19:06 -06:00
$app = require __DIR__ . '/../bootstrap/app.php';
2017-02-05 08:42:00 -06:00
$app->make(Kernel::class)->bootstrap();
return $app;
}
}