From 0d3ac1f20606ecdb1717d23100f2f53b15dfa73c Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 12 Sep 2022 11:16:11 +0500 Subject: [PATCH] Update ResourceSyncingTest.php --- tests/ResourceSyncingTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index 8ae150e2..bc9c6afc 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -148,7 +148,7 @@ test('creating the resource in tenant database creates it in central database as tenancy()->end(); // 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()); }); @@ -232,7 +232,7 @@ test('creating the resource in central database creates it in tenant database as $centralUser->tenants()->attach('t1'); $centralUser = CentralUser::first(); - expect($centralUser->getCreationAttributes())->toBeNull(); + expect($centralUser->getSyncedCreationAttributes())->toBeNull(); $tenant->run(function () use ($centralUser) { expect(ResourceUser::all())->toHaveCount(1); expect(ResourceUser::first()->toArray())->toEqual($centralUser->toArray());