mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:54:03 +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;
|
DeleteResourceInTenant::$shouldQueue = false;
|
||||||
UpdateOrCreateSyncedResource::$scopeGetModelQuery = null;
|
UpdateOrCreateSyncedResource::$scopeGetModelQuery = null;
|
||||||
|
|
||||||
|
// Reset global scopes on models (should happen automatically but to make this more explicit)
|
||||||
|
Model::clearBootedModels();
|
||||||
|
|
||||||
$syncedAttributes = [
|
$syncedAttributes = [
|
||||||
'global_id',
|
'global_id',
|
||||||
'name',
|
'name',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue