mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:54:05 +00:00
Update ResourceSyncingTest.php
This commit is contained in:
parent
8ecbe26b6d
commit
e6efa9f58a
1 changed files with 0 additions and 22 deletions
|
|
@ -900,7 +900,6 @@ class ResourceUserWithAttributeNames extends ResourceUser {
|
||||||
// exist in central model
|
// exist in central model
|
||||||
return
|
return
|
||||||
[
|
[
|
||||||
'global_id', // todo@1 remove it
|
|
||||||
'name',
|
'name',
|
||||||
'password',
|
'password',
|
||||||
'email',
|
'email',
|
||||||
|
|
@ -918,7 +917,6 @@ class CentralUserWithDefaultValues extends CentralUser {
|
||||||
// Attributes default values when creating resources from central to tenant model
|
// Attributes default values when creating resources from central to tenant model
|
||||||
return
|
return
|
||||||
[
|
[
|
||||||
'global_id',
|
|
||||||
'name' => 'Default User',
|
'name' => 'Default User',
|
||||||
'email' => 'default@localhost',
|
'email' => 'default@localhost',
|
||||||
'password' => 'password',
|
'password' => 'password',
|
||||||
|
|
@ -992,11 +990,9 @@ class ResourceUserForDifferentSchema extends ResourceUser {
|
||||||
|
|
||||||
class CentralUserProvidingMixture extends CentralUserForDifferentSchema {
|
class CentralUserProvidingMixture extends CentralUserForDifferentSchema {
|
||||||
|
|
||||||
|
|
||||||
public function getSyncedCreationAttributes(): array
|
public function getSyncedCreationAttributes(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'global_id',
|
|
||||||
'name',
|
'name',
|
||||||
'email',
|
'email',
|
||||||
// provide default values for password
|
// provide default values for password
|
||||||
|
|
@ -1006,27 +1002,9 @@ class CentralUserProvidingMixture extends CentralUserForDifferentSchema {
|
||||||
}
|
}
|
||||||
|
|
||||||
class ResourceUserProvidingMixture extends ResourceUserForDifferentSchema {
|
class ResourceUserProvidingMixture extends ResourceUserForDifferentSchema {
|
||||||
protected $table = 'resource_users';
|
|
||||||
|
|
||||||
public function getCentralModelName(): string
|
|
||||||
{
|
|
||||||
return CentralUserProvidingMixture::class;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getSyncedAttributeNames(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'global_id',
|
|
||||||
'name',
|
|
||||||
'email',
|
|
||||||
'password',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getSyncedCreationAttributes(): array
|
public function getSyncedCreationAttributes(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'global_id',
|
|
||||||
'name',
|
'name',
|
||||||
'email',
|
'email',
|
||||||
// provide default values for password
|
// provide default values for password
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue