Files
ClockyFly/tests/TestCase.php
Darius Rapalis 7f6529cd5d
Some checks failed
tests / ci (8.4) (push) Failing after 1m49s
tests / ci (8.5) (push) Failing after 1m50s
linter / quality (push) Successful in 1m44s
tests / ci (8.3) (push) Failing after 2m10s
New Laravel Project
2026-04-28 17:08:26 +03:00

17 lines
420 B
PHP

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