mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 03:54:03 +00:00
Update ResourceSyncingTest.php
This commit is contained in:
parent
b17882fcf8
commit
0d3ac1f206
1 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ test('creating the resource in tenant database creates it in central database as
|
||||||
tenancy()->end();
|
tenancy()->end();
|
||||||
|
|
||||||
// Assert central user and Resource user has exact same attributes and values
|
// Assert central user and Resource user has exact same attributes and values
|
||||||
expect($resourceUser->getCreationAttributes())->toBeNull();
|
expect($resourceUser->getSyncedCreationAttributes())->toBeNull();
|
||||||
expect(CentralUser::first()->toArray())->toEqual(ResourceUser::first()->toArray());
|
expect(CentralUser::first()->toArray())->toEqual(ResourceUser::first()->toArray());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -232,7 +232,7 @@ test('creating the resource in central database creates it in tenant database as
|
||||||
$centralUser->tenants()->attach('t1');
|
$centralUser->tenants()->attach('t1');
|
||||||
|
|
||||||
$centralUser = CentralUser::first();
|
$centralUser = CentralUser::first();
|
||||||
expect($centralUser->getCreationAttributes())->toBeNull();
|
expect($centralUser->getSyncedCreationAttributes())->toBeNull();
|
||||||
$tenant->run(function () use ($centralUser) {
|
$tenant->run(function () use ($centralUser) {
|
||||||
expect(ResourceUser::all())->toHaveCount(1);
|
expect(ResourceUser::all())->toHaveCount(1);
|
||||||
expect(ResourceUser::first()->toArray())->toEqual($centralUser->toArray());
|
expect(ResourceUser::first()->toArray())->toEqual($centralUser->toArray());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue