1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 07:54:03 +00:00

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

This commit is contained in:
Jesper Jacobsen 2019-10-22 23:55:19 +02:00
parent d899dcfcce
commit 43a43a8d55

View file

@ -259,6 +259,8 @@ 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) {