mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14: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:
parent
bb4dc196b0
commit
77df467567
1 changed files with 4 additions and 0 deletions
|
|
@ -259,6 +259,10 @@ 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