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:
parent
be6b2f8248
commit
55560563b5
4 changed files with 56 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue