public function EntityNormalizerValueTest::testGetIncludes in JSON:API 8
@covers ::getIncludes
File
- tests/
src/ Unit/ Normalizer/ Value/ EntityNormalizerValueTest.php, line 189
Class
- EntityNormalizerValueTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\Value\EntityNormalizerValue @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\Normalizer\ValueCode
public function testGetIncludes() {
$includes = $this->object
->getIncludes();
$includes = array_filter($includes, function ($included) {
return $included instanceof JsonApiDocumentTopLevelNormalizerValue;
});
$this
->assertCount(3, $includes);
}