TestCase.php 532 Bytes
Newer Older
1 2
<?php

Taylor Otwell committed
3 4 5
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
    /**
Taylor Otwell committed
6 7 8 9 10 11 12
     * The base URL to use while testing the application.
     *
     * @var string
     */
    protected $baseUrl = 'http://localhost';

    /**
Taylor Otwell committed
13 14 15 16 17 18 19
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
    public function createApplication()
    {
        $app = require __DIR__.'/../bootstrap/app.php';
20

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

Taylor Otwell committed
23 24
        return $app;
    }
25
}