function 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 72

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.