mirror of
https://github.com/archtechx/tenancy.git
synced 2026-03-21 23:44:03 +00:00
Reset static properties in beforeEach and afterEach
This commit is contained in:
parent
68ab6471bc
commit
681f285f89
1 changed files with 4 additions and 0 deletions
|
|
@ -26,12 +26,16 @@ beforeEach(function () {
|
|||
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
||||
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
||||
TenancyUrlGenerator::$overrides = [];
|
||||
TenancyUrlGenerator::$bypassParameter = 'central';
|
||||
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
||||
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
||||
TenancyUrlGenerator::$overrides = [];
|
||||
TenancyUrlGenerator::$bypassParameter = 'central';
|
||||
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue