You are here

public function JsonApiDocumentTopLevelNormalizerValueTest::testGetIncludes in JSON:API 8

@covers ::getIncludes

File

tests/src/Unit/Normalizer/Value/JsonApiDocumentTopLevelNormalizerValueTest.php, line 117

Class

JsonApiDocumentTopLevelNormalizerValueTest
@coversDefaultClass \Drupal\jsonapi\Normalizer\Value\JsonApiDocumentTopLevelNormalizerValue @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(2, $includes);
}