function JsonApiJsonSchemaTestTrait::getJsonSchemaTestNormalizationFormat

Same name and namespace in other branches
  1. 11.x core/modules/jsonapi/tests/src/Traits/JsonApiJsonSchemaTestTrait.php \Drupal\Tests\jsonapi\Traits\JsonApiJsonSchemaTestTrait::getJsonSchemaTestNormalizationFormat()

Format that should be used when performing test normalizations.

Overrides JsonSchemaTestTrait::getJsonSchemaTestNormalizationFormat

3 calls to JsonApiJsonSchemaTestTrait::getJsonSchemaTestNormalizationFormat()
JsonApiTopLevelResourceNormalizerTest::testConfigEntityResourceObjectSchema in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Test the generated config resource object normalization against the schema.
JsonApiTopLevelResourceNormalizerTest::testResourceObjectSchema in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Test the generated resource object normalization against the schema.
JsonApiTopLevelResourceNormalizerTest::testTopLevelResourceWithSingleResource in core/modules/jsonapi/tests/src/Kernel/Normalizer/JsonApiTopLevelResourceNormalizerTest.php
Tests the serialization of a top-level JSON:API document with a single resource.

File

core/modules/jsonapi/tests/src/Traits/JsonApiJsonSchemaTestTrait.php, line 26

Class

JsonApiJsonSchemaTestTrait
Support methods for testing JSON API schema.

Namespace

Drupal\Tests\jsonapi\Traits

Code

protected function getJsonSchemaTestNormalizationFormat() : ?string {
  return 'api_json';
}

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