mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 21:34:03 +00:00
17 lines
422 B
PHP
17 lines
422 B
PHP
<?php
|
|
|
|
use Stancl\Tenancy\Tests\TestCase;
|
|
|
|
uses(TestCase::class)->in(...filesAndFoldersExcluding(['WithoutTenancy']));
|
|
|
|
function pest(): \Orchestra\Testbench\TestCase
|
|
{
|
|
return Pest\TestSuite::getInstance()->test;
|
|
}
|
|
|
|
function filesAndFoldersExcluding(array $exclude = []): array
|
|
{
|
|
$dirs = scandir(__DIR__);
|
|
|
|
return array_filter($dirs, fn($dir) => ! in_array($dir, array_merge(['.', '..'], $exclude) , true));
|
|
}
|