TestCase.php 541 Bytes
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1 2
<?php

3
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
Dominik Hebeler's avatar
Dominik Hebeler committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
{
    /**
     * The base URL to use while testing the application.
     *
     * @var string
     */
    protected $baseUrl = 'http://localhost';

    /**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
    public function createApplication()
    {
        $app = require __DIR__.'/../bootstrap/app.php';

        $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

        return $app;
    }
}