]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Upgraded to Laravel 5.4
[bookstack] / tests / TestCase.php
index 8578b17e4a6da6270027662adab9917b36c1eabb..e0455f44712cd424c2ddea4d8f5dd670251c516f 100644 (file)
@@ -1,13 +1,19 @@
 <?php
 
+use Illuminate\Foundation\Testing\DatabaseTransactions;
+use Symfony\Component\DomCrawler\Crawler;
+
 class TestCase extends Illuminate\Foundation\Testing\TestCase
 {
+
+    use DatabaseTransactions;
+
     /**
-     * The base URL to use while testing the application.
+     * The base URL of the application.
      *
      * @var string
      */
-    protected $baseUrl = 'http://localhost';
+    public $baseUrl = 'http://localhost';
 
     /**
      * Creates the application.
@@ -18,7 +24,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
     {
         $app = require __DIR__.'/../bootstrap/app.php';
 
-        $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
+        $app->make(Kernel::class)->bootstrap();
 
         return $app;
     }