From 9a04fc0e7a7a16faaf42bdb190e848350a267724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 26 Jun 2025 12:57:25 +0200 Subject: [PATCH] add assertion --- tests/ResourceSyncingTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index 71ed3404..496489ca 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -1257,6 +1257,9 @@ test('global scopes on syncable models can break resource syncing', function () // The central resource was updated expect($centralUser->refresh()->name)->toBe('tenant2 user'); + + // The change was also synced to tenant1 + expect($tenant1->run(fn () => TenantUser::first()->name))->toBe('tenant2 user'); }); /**