]> BookStack Code Mirror - bookstack/blob - tests/TestCase.php
Merge branch 'master' of https://github.com/BookStackApp/BookStack
[bookstack] / tests / TestCase.php
1 <?php
2
3 use Illuminate\Foundation\Testing\DatabaseTransactions;
4 use Symfony\Component\DomCrawler\Crawler;
5
6 class TestCase extends Illuminate\Foundation\Testing\TestCase
7 {
8
9     use DatabaseTransactions;
10
11     /**
12      * The base URL of the application.
13      *
14      * @var string
15      */
16     public $baseUrl = 'http://localhost';
17
18     /**
19      * Creates the application.
20      *
21      * @return \Illuminate\Foundation\Application
22      */
23     public function createApplication()
24     {
25         $app = require __DIR__.'/../bootstrap/app.php';
26
27         $app->make(Kernel::class)->bootstrap();
28
29         return $app;
30     }
31 }