From 4be5b95f9e375a11e03d5bf548a13cfc60fbafbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 26 Jun 2025 13:33:10 +0200 Subject: [PATCH] add global scope reset to afterEach --- tests/ResourceSyncingTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index 496489ca..3250c37a 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -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 () {