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

Improve test name

This commit is contained in:
lukinovec 2025-06-03 09:30:58 +02:00
parent 05ebee24c4
commit b08c76974a

View file

@ -1198,7 +1198,7 @@ test('resource creation works correctly when central resource provides defaults
expect($centralUser->foo)->toBe('bar');
});
test('resource syncing works correctly when using a global scope on a tenant model', function (bool $scopeGetModelQuery) {
test('scopeGetModelQuery can make resource syncing work with global scopes', function (bool $scopeGetModelQuery) {
if ($scopeGetModelQuery) {
// Add a scope that bypasses the global scope
UpdateOrCreateSyncedResource::$scopeGetModelQuery = function (Builder $query) {