function NullNormalizerTest::jsonSchemaDataProvider

Same name and namespace in other branches
  1. 11.x core/modules/serialization/tests/src/Unit/Normalizer/NullNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\NullNormalizerTest::jsonSchemaDataProvider()

Data provider for ::testNormalizedValuesAgainstJsonSchema.

Return value

array Array of possible normalized values to validate the JSON schema against.

Overrides JsonSchemaTestTrait::jsonSchemaDataProvider

File

core/modules/serialization/tests/src/Unit/Normalizer/NullNormalizerTest.php, line 70

Class

NullNormalizerTest
Tests Drupal\serialization\Normalizer\NullNormalizer.

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public static function jsonSchemaDataProvider() : array {
  return [
    'null' => [
      TypedDataInterface::class,
    ],
  ];
}

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