1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:24:04 +00:00

Explicitly reset global scopes on models in beforeEach()

This commit is contained in:
lukinovec 2025-06-24 13:16:51 +02:00
parent f8df167f9d
commit ee28d9ec7d

View file

@ -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',