mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +00:00
Fixes an issue where tests wouldn't have tenants in the tearDown method
This commit is contained in:
parent
d899dcfcce
commit
43a43a8d55
1 changed files with 2 additions and 0 deletions
|
|
@ -259,6 +259,8 @@ class TenantManager
|
|||
|
||||
public function endTenancy(): self
|
||||
{
|
||||
if (! $this->initialized) { return $this; }
|
||||
|
||||
$prevented = $this->event('ending');
|
||||
|
||||
foreach ($this->tenancyBootstrappers($prevented) as $bootstrapper) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue