You are here

protected function JsonapiHypermediaLinkCollectionNormalizerTest::setUp in JSON:API Hypermedia 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Normalizer/JsonapiHypermediaLinkCollectionNormalizerTest.php, line 44

Class

JsonapiHypermediaLinkCollectionNormalizerTest
Test the link collection normalizer that replaces the core normalizer.

Namespace

Drupal\Tests\jsonapi_hypermedia\Kernel\Normalizer

Code

protected function setUp() {
  parent::setUp();
  $this->normalizer = $this->container
    ->get('serializer.normalizer.link_collection.jsonapi');
  $this->normalizer
    ->setSerializer($this->container
    ->get('jsonapi.serializer'));
}