1
0
Fork 0
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:
Abrar Ahmad 2022-06-30 13:12:34 +05:00
parent e7d0bbf302
commit 8bd7c95fff
26 changed files with 2 additions and 91 deletions

View file

@ -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')