App\Test\Integration\TestCase::createApplication PHP Method

createApplication() public method

public createApplication ( ) : Illuminate\Foundation\Application
return Illuminate\Foundation\Application
    public function createApplication() : Application
    {
        file_put_contents(__DIR__ . '/../../storage/database.sqlite', null);
        $app = (require __DIR__ . '/../../bootstrap/app.php');
        $app->make(Kernel::class)->bootstrap();
        return $app;
    }