You are here

public function SortNormalizerTest::setUp in JSON:API 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Normalizer/SortNormalizerTest.php, line 39

Class

SortNormalizerTest
@coversDefaultClass \Drupal\jsonapi\Normalizer\SortNormalizer @group jsonapi @group jsonapi_normalizers @group legacy

Namespace

Drupal\Tests\jsonapi\Kernel\Normalizer

Code

public function setUp() {
  parent::setUp();
  $this->container
    ->set('jsonapi.field_resolver', $this
    ->getFieldResolver('foo', 'bar'));
  $this->normalizer = $this->container
    ->get('serializer.normalizer.sort.jsonapi');
}