You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hydra/tests/CreatesApplication.php

21 lines
376 B

<?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;
}
}