protected function JsonapiHypermediaLinkCollectionNormalizerTest::getTestLinkCollection in JSON:API Hypermedia 8
Creates a link collection with which to test normalization.
1 call to JsonapiHypermediaLinkCollectionNormalizerTest::getTestLinkCollection()
- JsonapiHypermediaLinkCollectionNormalizerTest::testNormalize in tests/src/ Kernel/ Normalizer/ JsonapiHypermediaLinkCollectionNormalizerTest.php 
- Tests link collection normalization.
File
- tests/src/ Kernel/ Normalizer/ JsonapiHypermediaLinkCollectionNormalizerTest.php, line 203 
Class
- JsonapiHypermediaLinkCollectionNormalizerTest
- Test the link collection normalizer that replaces the core normalizer.
Namespace
Drupal\Tests\jsonapi_hypermedia\Kernel\NormalizerCode
protected function getTestLinkCollection(array $links) {
  Inspector::assertAllObjects($links, Link::class);
  $dummy_link_context = new JsonApiDocumentTopLevel(new ResourceObjectData([]), new NullIncludedData(), new LinkCollection($links));
  return $dummy_link_context
    ->getLinks();
}