openstackid-resources/tests/CreatesApplication.php
smarcet 6d52da8a9b Migration to PHP 7.x
* updated dependencies
* updated LV version to 5.6
* added object storage for assets

Change-Id: I9a66563c925fe6f70c4f7703f13867caa30b8fb7
2018-11-23 11:50:55 -03:00

22 lines
430 B
PHP

<?php namespace Tests;
use Illuminate\Contracts\Console\Kernel;
/**
* Trait CreatesApplication
* @package Tests
*/
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}