mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 08:54:06 +00:00
assert that creation attributes returns null
This commit is contained in:
parent
3368c4cb16
commit
55d858b601
1 changed files with 2 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ test('creating the resource in tenant database creates it in central database as
|
||||||
tenancy()->initialize($tenant);
|
tenancy()->initialize($tenant);
|
||||||
|
|
||||||
// Create the user in tenant DB
|
// Create the user in tenant DB
|
||||||
ResourceUser::create([
|
$resourceUser = ResourceUser::create([
|
||||||
'global_id' => 'acme',
|
'global_id' => 'acme',
|
||||||
'name' => 'John Doe',
|
'name' => 'John Doe',
|
||||||
'email' => 'john@localhost',
|
'email' => 'john@localhost',
|
||||||
|
|
@ -148,6 +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->getResourceCreationAttributes())->toBeNull();
|
||||||
expect(CentralUser::first()->toArray())->toEqual(ResourceUser::first()->toArray());
|
expect(CentralUser::first()->toArray())->toEqual(ResourceUser::first()->toArray());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue