share-lt/tests/TestCase.php

21 lines
430 B
PHP
Raw Permalink Normal View History

<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
2026-01-02 13:58:06 +00:00
/**
* Creates the application.
*/
public function createApplication(): \Illuminate\Foundation\Application
{
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
return $app;
}
}