mirror of
https://github.com/archtechx/tenancy.git
synced 2026-03-22 04:54:04 +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);
|
Event::listen(TenancyEnded::class, RevertToCentralContext::class);
|
||||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
TenancyUrlGenerator::$prefixRouteNames = false;
|
||||||
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
||||||
|
TenancyUrlGenerator::$overrides = [];
|
||||||
|
TenancyUrlGenerator::$bypassParameter = 'central';
|
||||||
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
TenancyUrlGenerator::$prefixRouteNames = false;
|
||||||
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
TenancyUrlGenerator::$passTenantParameterToRoutes = false;
|
||||||
|
TenancyUrlGenerator::$overrides = [];
|
||||||
|
TenancyUrlGenerator::$bypassParameter = 'central';
|
||||||
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
UrlGeneratorBootstrapper::$addTenantParameterToDefaults = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue