1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00

Fixes an issue where tests wouldn't have tenants in the tearDown method (#198)

* Fixes an issue where tests wouldn't have tenants in the tearDown method

* Styling
This commit is contained in:
JapSeyz 2019-10-26 21:18:03 +02:00 committed by Samuel Štancl
parent bb4dc196b0
commit 77df467567

View file

@ -259,6 +259,10 @@ class TenantManager
public function endTenancy(): self public function endTenancy(): self
{ {
if (! $this->initialized) {
return $this;
}
$prevented = $this->event('ending'); $prevented = $this->event('ending');
foreach ($this->tenancyBootstrappers($prevented) as $bootstrapper) { foreach ($this->tenancyBootstrappers($prevented) as $bootstrapper) {