diff options
Diffstat (limited to 'tests/TestCase.php')
| -rw-r--r-- | tests/TestCase.php | 17 | 
1 files changed, 14 insertions, 3 deletions
| diff --git a/tests/TestCase.php b/tests/TestCase.php index 651d9cb..8208edc 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,14 +1,25 @@  <?php -class TestCase extends Laravel\Lumen\Testing\TestCase +abstract class TestCase extends Illuminate\Foundation\Testing\TestCase  {      /** +     * The base URL to use while testing the application. +     * +     * @var string +     */ +    protected $baseUrl = 'http://localhost'; + +    /**       * Creates the application.       * -     * @return \Laravel\Lumen\Application +     * @return \Illuminate\Foundation\Application       */      public function createApplication()      { -        return require __DIR__.'/../bootstrap/app.php'; +        $app = require __DIR__.'/../bootstrap/app.php'; + +        $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); + +        return $app;      }  } | 
