function JsonEncoderTest::setUp

Same name in this branch
  1. 11.x core/modules/serialization/tests/src/Unit/Encoder/JsonEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\JsonEncoderTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/jsonapi/tests/src/Unit/Encoder/JsonEncoderTest.php, line 29

Class

JsonEncoderTest
Tests the JSON:API encoder.

Namespace

Drupal\Tests\jsonapi\Unit\Encoder

Code

protected function setUp() : void {
  parent::setUp();
  $this->encoder = new JsonEncoder();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.