. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. namespace Tests; use Illuminate\Contracts\Console\Kernel; trait CreatesApplication { public static function createApp() { $app = require __DIR__.'/../bootstrap/app.php'; $app->make(Kernel::class)->bootstrap(); return $app; } /** * Creates the application. * * @return \Illuminate\Foundation\Application */ public function createApplication() { return static::createApp(); } }