From 1bc95c93b8cc6288974f22158656527f815a98af Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 30 Apr 2023 01:45:36 +0000 Subject: [PATCH] Apply fixes from StyleCI --- tests/EndpointBlocksTest.php | 1 + tests/EndpointCommentsTest.php | 2 -- tests/EndpointDatabaseTest.php | 4 +--- tests/EndpointPagesTest.php | 1 - tests/FilterBagTest.php | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/EndpointBlocksTest.php b/tests/EndpointBlocksTest.php index 089814f..b1dd23f 100644 --- a/tests/EndpointBlocksTest.php +++ b/tests/EndpointBlocksTest.php @@ -314,6 +314,7 @@ public function classProvider(): array /** * @test + * * @dataProvider classProvider * * @param $entityClass diff --git a/tests/EndpointCommentsTest.php b/tests/EndpointCommentsTest.php index 21c84a1..d584556 100644 --- a/tests/EndpointCommentsTest.php +++ b/tests/EndpointCommentsTest.php @@ -42,7 +42,6 @@ }); it('should fetch list of comments with an accurate representation of attributes', function () { - // successfull /v1/comments Http::fake([ 'https://api.notion.com/v1/comments?block_id=abf6b0af-6eaa-45ca-9715-9fa147ef6b17*' => Http::response( @@ -114,7 +113,6 @@ }); it('successfully creates a comment within a page', function () { - // successfull (post) /v1/comments Http::fake([ 'https://api.notion.com/v1/comments*' => Http::response( diff --git a/tests/EndpointDatabaseTest.php b/tests/EndpointDatabaseTest.php index 227bf4d..59b3db4 100644 --- a/tests/EndpointDatabaseTest.php +++ b/tests/EndpointDatabaseTest.php @@ -29,8 +29,7 @@ * @see https://developers.notion.com/reference/post-database-query */ it('returns a database endpoint instance', function () { - -// TODO update for new Filter behaviour + // TODO update for new Filter behaviour $endpoint = Notion::database('897e5a76ae524b489fdfe71f5945d1af'); $this->assertInstanceOf(Database::class, $endpoint); @@ -136,7 +135,6 @@ }); it('throws a notion exception for a bad request', function () { - // failing /v1/databases Http::fake([ 'https://api.notion.com/v1/databases/8284f3ff77e24d4a939d19459e4d6bdc/query*' => Http::response( diff --git a/tests/EndpointPagesTest.php b/tests/EndpointPagesTest.php index f8608b2..660705b 100644 --- a/tests/EndpointPagesTest.php +++ b/tests/EndpointPagesTest.php @@ -107,7 +107,6 @@ public function it_throws_a_notion_exception_not_found() /** @test */ public function it_assembles_properties_for_a_new_page() { - // test values $pageId = '0349b883a1c64539b435289ea62b6eab'; $pageTitle = 'I was updated from Tinkerwell'; diff --git a/tests/FilterBagTest.php b/tests/FilterBagTest.php index 7fc6d57..61af9d2 100644 --- a/tests/FilterBagTest.php +++ b/tests/FilterBagTest.php @@ -128,7 +128,6 @@ }); it('creates a filter bag with with the AND operator and a nested OR condition', function () { - // Filter for all entries that are // (KnownFor == Univac && (Name == Grace || Name == Jean))