]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Namespaced tests to align with new laravel default
[bookstack] / tests / TestCase.php
index e0455f44712cd424c2ddea4d8f5dd670251c516f..6b97682e8584f19b8873b53ae286b2e84a508acf 100644 (file)
@@ -1,31 +1,8 @@
-<?php
+<?php namespace Tests;
 
-use Illuminate\Foundation\Testing\DatabaseTransactions;
-use Symfony\Component\DomCrawler\Crawler;
+use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
 
-class TestCase extends Illuminate\Foundation\Testing\TestCase
+abstract class TestCase extends BaseTestCase
 {
-
-    use DatabaseTransactions;
-
-    /**
-     * The base URL of the application.
-     *
-     * @var string
-     */
-    public $baseUrl = 'http://localhost';
-
-    /**
-     * Creates the application.
-     *
-     * @return \Illuminate\Foundation\Application
-     */
-    public function createApplication()
-    {
-        $app = require __DIR__.'/../bootstrap/app.php';
-
-        $app->make(Kernel::class)->bootstrap();
-
-        return $app;
-    }
-}
+    use CreatesApplication;
+}
\ No newline at end of file