From 9081419ffc2df5dbb2a3b5913a9a5e20355cd602 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 10 Jun 2023 08:37:54 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/RecordedEndpointDatabasesCreationTest.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/RecordedEndpointDatabasesCreationTest.php b/tests/RecordedEndpointDatabasesCreationTest.php index 291575d..950da37 100644 --- a/tests/RecordedEndpointDatabasesCreationTest.php +++ b/tests/RecordedEndpointDatabasesCreationTest.php @@ -122,9 +122,9 @@ expect($databaseEntity->getProperty('Test Relation')->getRelation()[0])->toBe('375da18a-b01d-42d1-8e95-a9dc6a901db1'); - expect($databaseEntity->getProperty('Test Rollup')->getContent()["rollup_property_name"])->toBe("Tag"); - expect($databaseEntity->getProperty('Test Rollup')->getContent()["relation_property_name"])->toBe("Test Relation"); - expect($databaseEntity->getProperty('Test Rollup')->getContent()["function"])->toBe("unique"); + expect($databaseEntity->getProperty('Test Rollup')->getContent()['rollup_property_name'])->toBe('Tag'); + expect($databaseEntity->getProperty('Test Rollup')->getContent()['relation_property_name'])->toBe('Test Relation'); + expect($databaseEntity->getProperty('Test Rollup')->getContent()['function'])->toBe('unique'); expect($databaseEntity->getProperty('Test Select')->getOptions())->toHaveCount(count($selectOptions)); expect($databaseEntity->getProperty('Test Select')->getOptions()[0]->getName())->toEqual($selectOptions[0]['name']); @@ -143,12 +143,11 @@ $databaseEntity = Notion::databases() ->build() ->createInPage('0adbc2eb57e84569a700a70d537615be'); - + expect($databaseEntity->getProperties())->toHaveCount(1); expect($databaseEntity->getProperty('Name'))->toBeInstanceOf(Title::class); }); - it('should create a new database with emoji icon', function () { $this->httpRecorder->nameForNextRequest('only-title-properties'); @@ -156,7 +155,7 @@ ->build() ->iconEmoji('👍') ->createInPage('0adbc2eb57e84569a700a70d537615be'); - + expect($databaseEntity->getProperties())->toHaveCount(1); expect($databaseEntity->getProperty('Name'))->toBeInstanceOf(Title::class); expect($databaseEntity->getIcon())->toBe('👍');