diff --git a/tests/RecordedEndpointPageTest.php b/tests/RecordedEndpointPageTest.php index e1b966a2403783f8a094ec94d0a7bb1339c50550..a28d5745835e6b654c19b1b95151be9e36968b8f 100644 --- a/tests/RecordedEndpointPageTest.php +++ b/tests/RecordedEndpointPageTest.php @@ -24,14 +24,14 @@ it('should fetch specific property items of a page', function () { expect($propertyKeys)->toBeInstanceOf(\Illuminate\Support\Collection::class); expect($propertyKeys)->toHaveCount(16); - + // dd($propertyKeys); foreach ($propertyKeys as $propertyKey) { $id = $databaseStructure->getProperty($propertyKey)->getId(); $property = \Notion::page('f1884dca3885460e93f52bf4da7cce8e')->property($id); - match($propertyKey){ + match ($propertyKey) { 'Rollup' => dd($property->asCollection()) && expect($property->asCollection()->first())->toBeInstanceOf(Rollup::class), // default => throw new \Exception('Unknown property key') default => null