mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:14:03 +00:00
add assertion
This commit is contained in:
parent
0c41b3ba85
commit
9a04fc0e7a
1 changed files with 3 additions and 0 deletions
|
|
@ -1257,6 +1257,9 @@ test('global scopes on syncable models can break resource syncing', function ()
|
||||||
|
|
||||||
// The central resource was updated
|
// The central resource was updated
|
||||||
expect($centralUser->refresh()->name)->toBe('tenant2 user');
|
expect($centralUser->refresh()->name)->toBe('tenant2 user');
|
||||||
|
|
||||||
|
// The change was also synced to tenant1
|
||||||
|
expect($tenant1->run(fn () => TenantUser::first()->name))->toBe('tenant2 user');
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue