aboutsummaryrefslogblamecommitdiff
path: root/tests/CreatesApplication.php
blob: 547152f6a933b1c1f409283d7bdfe1ba556d4069 (plain) (tree)





















                                                       
<?php

namespace Tests;

use Illuminate\Contracts\Console\Kernel;

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

        $app->make(Kernel::class)->bootstrap();

        return $app;
    }
}