From ee28d9ec7d70600a47c742c5e2d0918e943e5474 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 24 Jun 2025 13:16:51 +0200 Subject: [PATCH] Explicitly reset global scopes on models in beforeEach() --- tests/ResourceSyncingTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index f15ddafa..c2e356e2 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -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',