mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:24:05 +00:00
Explicitly reset global scopes on models in beforeEach()
This commit is contained in:
parent
f8df167f9d
commit
ee28d9ec7d
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ beforeEach(function () {
|
|||
DeleteResourceInTenant::$shouldQueue = false;
|
||||
UpdateOrCreateSyncedResource::$scopeGetModelQuery = null;
|
||||
|
||||
// Reset global scopes on models (should happen automatically but to make this more explicit)
|
||||
Model::clearBootedModels();
|
||||
|
||||
$syncedAttributes = [
|
||||
'global_id',
|
||||
'name',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue