File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 122
122
123
123
expect ($ databaseEntity ->getProperty ('Test Relation ' )->getRelation ()[0 ])->toBe ('375da18a-b01d-42d1-8e95-a9dc6a901db1 ' );
124
124
125
- expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[" rollup_property_name " ])->toBe (" Tag " );
126
- expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[" relation_property_name " ])->toBe (" Test Relation " );
127
- expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[" function " ])->toBe (" unique " );
125
+ expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[' rollup_property_name ' ])->toBe (' Tag ' );
126
+ expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[' relation_property_name ' ])->toBe (' Test Relation ' );
127
+ expect ($ databaseEntity ->getProperty ('Test Rollup ' )->getContent ()[' function ' ])->toBe (' unique ' );
128
128
129
129
expect ($ databaseEntity ->getProperty ('Test Select ' )->getOptions ())->toHaveCount (count ($ selectOptions ));
130
130
expect ($ databaseEntity ->getProperty ('Test Select ' )->getOptions ()[0 ]->getName ())->toEqual ($ selectOptions [0 ]['name ' ]);
143
143
$ databaseEntity = Notion::databases ()
144
144
->build ()
145
145
->createInPage ('0adbc2eb57e84569a700a70d537615be ' );
146
-
146
+
147
147
expect ($ databaseEntity ->getProperties ())->toHaveCount (1 );
148
148
expect ($ databaseEntity ->getProperty ('Name ' ))->toBeInstanceOf (Title::class);
149
149
});
150
150
151
-
152
151
it ('should create a new database with emoji icon ' , function () {
153
152
$ this ->httpRecorder ->nameForNextRequest ('only-title-properties ' );
154
153
155
154
$ databaseEntity = Notion::databases ()
156
155
->build ()
157
156
->iconEmoji ('👍 ' )
158
157
->createInPage ('0adbc2eb57e84569a700a70d537615be ' );
159
-
158
+
160
159
expect ($ databaseEntity ->getProperties ())->toHaveCount (1 );
161
160
expect ($ databaseEntity ->getProperty ('Name ' ))->toBeInstanceOf (Title::class);
162
161
expect ($ databaseEntity ->getIcon ())->toBe ('👍 ' );
You can’t perform that action at this time.
0 commit comments