Skip to content

Commit 44626bb

Browse files
authored
Apply fixes from StyleCI (#152)
1 parent 1c27736 commit 44626bb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/RecordedEndpointResolveTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
use FiveamCode\LaravelNotionApi\Entities\NotionParent;
4-
use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
54
use Illuminate\Support\Facades\Http;
65

76
$httpRecorder = null;
@@ -49,7 +48,7 @@
4948
expect($parentPage->getTitle())->toBe('Resolve Endpoint - Testing Suite');
5049
});
5150

52-
it('should resolve the database parent of a page', function(){
51+
it('should resolve the database parent of a page', function () {
5352
$page = Notion::pages()->find('415d9b6c6e454f42aab2b6e13804cfe9');
5453

5554
$database = Notion::resolve()->parent($page->getParent());
@@ -58,7 +57,7 @@
5857
expect($database->getTitle())->toBe('Test Table as Parent');
5958
});
6059

61-
it('should resolve the block parent of a block', function(){
60+
it('should resolve the block parent of a block', function () {
6261
$block = Notion::block('d5f9419b44204c909501b1e2b7569503')->retrieve();
6362

6463
$parentBlock = Notion::resolve()->parent($block->getParent());
@@ -67,7 +66,7 @@
6766
expect($parentBlock->getType())->toBe('paragraph');
6867
});
6968

70-
it('should resolve the page parent of a block', function(){
69+
it('should resolve the page parent of a block', function () {
7170
$block = Notion::block('0971ac1a-b6f2-4acc-b706-f5f2ed16ffd6')->retrieve();
7271

7372
$pageParent = Notion::resolve()->parent($block->getParent());
@@ -76,11 +75,11 @@
7675
expect($pageParent->getTitle())->toBe('Page for Block Parent Resolve Testing');
7776
});
7877

79-
it('should throw a handling exception when unknown parent type', function(){
80-
expect(fn() => new NotionParent(['object' => 'unknown', 'id' => '1234']))->toThrow('invalid json-array: the given object is not a valid parent');
78+
it('should throw a handling exception when unknown parent type', function () {
79+
expect(fn () => new NotionParent(['object' => 'unknown', 'id' => '1234']))->toThrow('invalid json-array: the given object is not a valid parent');
8180
});
8281

83-
it('should resolve the pages of a database relation', function(){
82+
it('should resolve the pages of a database relation', function () {
8483
$page = Notion::pages()->find('1c56e2ad3d95458c935dae6d57769037');
8584

8685
$relationPropertyItems = $page->getProperty('Parent Relation Database');

0 commit comments

Comments
 (0)