Refactoring

This commit is contained in:
2022-09-05 14:41:20 +02:00
parent 457f7ee11c
commit bcbd0c7faf
93 changed files with 11092 additions and 48 deletions

View File

@@ -0,0 +1,22 @@
<?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;
}
}