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

add assertion

This commit is contained in:
Samuel Štancl 2025-06-26 12:57:25 +02:00
parent 0c41b3ba85
commit 9a04fc0e7a

View file

@ -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');
});
/**