From 55d858b6019e25a52fc229ac27798253addc9739 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 29 Aug 2022 12:16:34 +0500 Subject: [PATCH] assert that creation attributes returns null --- tests/ResourceSyncingTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ResourceSyncingTest.php b/tests/ResourceSyncingTest.php index f0b12ab0..27aab5cf 100644 --- a/tests/ResourceSyncingTest.php +++ b/tests/ResourceSyncingTest.php @@ -137,7 +137,7 @@ test('creating the resource in tenant database creates it in central database as tenancy()->initialize($tenant); // Create the user in tenant DB - ResourceUser::create([ + $resourceUser = ResourceUser::create([ 'global_id' => 'acme', 'name' => 'John Doe', 'email' => 'john@localhost', @@ -148,6 +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->getResourceCreationAttributes())->toBeNull(); expect(CentralUser::first()->toArray())->toEqual(ResourceUser::first()->toArray()); });