mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:34:04 +00:00
Update tests/ResourceSyncingUsingPolymorphicTest.php
This commit is contained in:
parent
2b7e346b7d
commit
5ba2f8cd54
1 changed files with 2 additions and 4 deletions
|
|
@ -151,10 +151,8 @@ test('resource syncing works using a single pivot table for multiple models when
|
||||||
$tenantUser = $tenantUser->toArray();
|
$tenantUser = $tenantUser->toArray();
|
||||||
unset($centralUser['id'], $tenantUser['id']);
|
unset($centralUser['id'], $tenantUser['id']);
|
||||||
|
|
||||||
// reorder global_id in $centralUser to put it at the last position so we can match the exact array
|
// array keys use a different order here
|
||||||
$centralUser['global_id'] = array_shift($centralUser);
|
expect($tenantUser)->toEqualCanonicalizing($centralUser);
|
||||||
|
|
||||||
expect($tenantUser)->toBe($centralUser);
|
|
||||||
|
|
||||||
$tenant2 = ResourceTenantUsingPolymorphic::create(['id' => 't2']);
|
$tenant2 = ResourceTenantUsingPolymorphic::create(['id' => 't2']);
|
||||||
migrateCompaniesTableForTenants();
|
migrateCompaniesTableForTenants();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue