1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 16:14:03 +00:00
tenancy/tests/Pest.php
2022-11-30 12:21:43 +05:00

17 lines
359 B
PHP

<?php
use Stancl\Tenancy\Tests\TestCase;
uses(TestCase::class)->in(...filesAndFolder());
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));
}