1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 03:14:04 +00:00

separate TestCase for redirect tests

This commit is contained in:
Abrar Ahmad 2022-11-30 12:21:43 +05:00
parent be6b2f8248
commit 55560563b5
4 changed files with 56 additions and 10 deletions

View file

@ -2,9 +2,16 @@
use Stancl\Tenancy\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
uses(TestCase::class)->in(...filesAndFolder());
function pest(): TestCase
function pest(): \Orchestra\Testbench\TestCase
{
return Pest\TestSuite::getInstance()->test;
}
function filesAndFolder(): array
{
$dirs = scandir(__DIR__);
return array_filter($dirs, fn($dir) => ! in_array($dir, ['.', '..', 'WithoutTenancy'], true));
}