Files
ad_testbed/tests/TestCase.php
Mark Gregory 35b0b82618
tests / ci (push) Canceled after 0s
Initial Commit
2026-11-11 15:51:37 +00:00

17 lines
420 B
PHP
Executable File

<?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.");
}
}
}