CAPS04-FE-REFACTOR / tests /TestCase.php
wepee's picture
setup: new project laravel 13 react with inertia
ec474ac
Raw
History Blame Contribute Delete
420 Bytes
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Laravel\Fortify\Features;
abstract class TestCase extends BaseTestCase
{
protected function skipUnlessFortifyHas(string $feature, ?string $message = null): void
{
if (! Features::enabled($feature)) {
$this->markTestSkipped($message ?? "Fortify feature [{$feature}] is not enabled.");
}
}
}