You are here

protected function ResourceObjectNormalizerCacherTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php \Drupal\Tests\jsonapi\Kernel\EventSubscriber\ResourceObjectNormalizerCacherTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/jsonapi/tests/src/Kernel/EventSubscriber/ResourceObjectNormalizerCacherTest.php, line 55

Class

ResourceObjectNormalizerCacherTest
@coversDefaultClass \Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher @group jsonapi

Namespace

Drupal\Tests\jsonapi\Kernel\EventSubscriber

Code

protected function setUp() {
  parent::setUp();
  $this->resourceTypeRepository = $this->container
    ->get('jsonapi.resource_type.repository');
  $this->serializer = $this->container
    ->get('jsonapi.serializer');
  $this->cacher = $this->container
    ->get('jsonapi.normalization_cacher');
}