]> BookStack Code Mirror - bookstack/blob - tests/CreatesApplication.php
ZIP Exports: Changed the instance id mechanism
[bookstack] / tests / CreatesApplication.php
1 <?php
2
3 namespace Tests;
4
5 use Illuminate\Contracts\Console\Kernel;
6 use Illuminate\Foundation\Application;
7
8 trait CreatesApplication
9 {
10     /**
11      * Creates the application.
12      */
13     public function createApplication(): Application
14     {
15         $app = require __DIR__ . '/../bootstrap/app.php';
16         $app->make(Kernel::class)->bootstrap();
17
18         return $app;
19     }
20 }