mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 19:14:03 +00:00
Update ResourceSyncingTest.php
This commit is contained in:
parent
d22224c945
commit
aaffc1d6b0
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ test('creating the resource in tenant database creates it in central database wi
|
||||||
expect(CentralUser::first()->password)->toBe('secret');
|
expect(CentralUser::first()->password)->toBe('secret');
|
||||||
expect(CentralUser::first()->email)->toBe('john@localhost');
|
expect(CentralUser::first()->email)->toBe('john@localhost');
|
||||||
|
|
||||||
// Assert the "role" attribute is unsynced and we are using the default values
|
// Assert the "role" attribute is unsynced and we are using the default value
|
||||||
expect(CentralUser::first()->role)->toBe('admin');
|
expect(CentralUser::first()->role)->toBe('admin');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -268,7 +268,7 @@ test('creating the resource in central database creates it in tenant database wi
|
||||||
expect(ResourceUser::first()->password)->toBe('secret');
|
expect(ResourceUser::first()->password)->toBe('secret');
|
||||||
expect(ResourceUser::first()->email)->toBe('john@localhost');
|
expect(ResourceUser::first()->email)->toBe('john@localhost');
|
||||||
|
|
||||||
// Assert the "role" attribute is unsynced and we are using the default values
|
// Assert the "role" attribute is unsynced and we are using the default value
|
||||||
expect(ResourceUser::first()->role)->toBe('admin');
|
expect(ResourceUser::first()->role)->toBe('admin');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue