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

add global scope reset to afterEach

This commit is contained in:
Samuel Štancl 2025-06-26 13:33:10 +02:00
parent 9a04fc0e7a
commit 4be5b95f9e

View file

@ -111,6 +111,9 @@ beforeEach(function () {
afterEach(function () {
UpdateOrCreateSyncedResource::$scopeGetModelQuery = null;
// Reset global scopes on models (should happen automatically but to make this more explicit)
Model::clearBootedModels();
});
test('resources created with the same global id in different tenant dbs will be synced to a single central resource', function () {