]> BookStack Code Mirror - bookstack/blob - tests/CreatesApplication.php
Merge branch 'master' of git://github.com/osmansorkar/BookStack into osmansorkar...
[bookstack] / tests / CreatesApplication.php
1 <?php namespace Tests;
2
3 use Illuminate\Contracts\Console\Kernel;
4
5 trait CreatesApplication
6 {
7     /**
8      * Creates the application.
9      *
10      * @return \Illuminate\Foundation\Application
11      */
12     public function createApplication()
13     {
14         $app = require __DIR__.'/../bootstrap/app.php';
15         $app->make(Kernel::class)->bootstrap();
16         return $app;
17     }
18 }