You are here

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\Value

Code

public function testGetIncludes() {
  $includes = $this->object
    ->getIncludes();
  $includes = array_filter($includes, function ($included) {
    return $included instanceof JsonApiDocumentTopLevelNormalizerValue;
  });
  $this
    ->assertCount(3, $includes);
}