mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:14:03 +00:00
add global scope reset to afterEach
This commit is contained in:
parent
9a04fc0e7a
commit
4be5b95f9e
1 changed files with 3 additions and 0 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue