mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 00:24:02 +00:00
removed uses from individual files and add it in Pest
This commit is contained in:
parent
e7d0bbf302
commit
8bd7c95fff
26 changed files with 2 additions and 91 deletions
|
|
@ -7,8 +7,6 @@ use Stancl\Tenancy\Features\UniversalRoutes;
|
|||
use Stancl\Tenancy\Middleware\InitializeTenancyByDomain;
|
||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
|
||||
uses(Stancl\Tenancy\Tests\TestCase::class);
|
||||
|
||||
afterEach(function () {
|
||||
InitializeTenancyByDomain::$onFail = null;
|
||||
});
|
||||
|
|
@ -67,7 +65,7 @@ test('making one route universal doesnt make all routes universal', function ()
|
|||
$this->get('http://acme.localhost/foo')
|
||||
->assertSuccessful()
|
||||
->assertSee('Tenancy is initialized.');
|
||||
|
||||
|
||||
tenancy()->end();
|
||||
|
||||
$this->get('http://localhost/bar')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue