Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Nov 28, 2023
1 parent c5149a2 commit 9c4824f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Functional/ParsingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ public function testParseNormativeStatementsForVersion10Correctly(): void
$this->assertInstanceOf('Art4\JsonApiClient\V1\Document', $document);
$this->assertSame(['data', 'included', 'jsonapi'], $document->getKeys());
$this->assertSame('1.0', $document->get('jsonapi.version'));
$this->assertInstanceOf(Accessable::class, $document->get('data'));
$this->assertCount(6, $document->get('data')->getKeys());
$this->assertInstanceOf(Accessable::class, $document->get('included'));
$this->assertCount(184, $document->get('included')->getKeys());
}

Expand All @@ -668,7 +670,9 @@ public function testParseNormativeStatementsForVersion11Correctly(): void
$this->assertInstanceOf('Art4\JsonApiClient\V1\Document', $document);
$this->assertSame(['data', 'included', 'jsonapi'], $document->getKeys());
$this->assertSame('1.1', $document->get('jsonapi.version'));
$this->assertInstanceOf(Accessable::class, $document->get('data'));
$this->assertCount(6, $document->get('data')->getKeys());
$this->assertInstanceOf(Accessable::class, $document->get('included'));
$this->assertCount(188, $document->get('included')->getKeys());
}

Expand All @@ -679,8 +683,9 @@ public function testParseJsonApiObjectWithVersion11Correctly(): void

$this->assertInstanceOf('Art4\JsonApiClient\V1\Document', $document);
$this->assertSame(['meta', 'jsonapi'], $document->getKeys());
$this->assertInstanceOf(Accessable::class, $document->get('jsonapi'));
$this->assertSame(['version'], $document->get('jsonapi')->getKeys());
// TODO: Add support for unknown properties
// TODO #90: Add support for unknown properties
// $this->assertSame(['version', 'ext', 'profile'], $document->get('jsonapi')->getKeys());
$this->assertSame('1.1', $document->get('jsonapi.version'));
}
Expand Down

0 comments on commit 9c4824f

Please sign in to comment.