function JsonSchemaTestTrait::jsonSchemaDataProvider
Data provider for ::testNormalizedValuesAgainstJsonSchema.
Return value
array Array of possible normalized values to validate the JSON schema against.
7 methods override JsonSchemaTestTrait::jsonSchemaDataProvider()
- DateTimeIso8601NormalizerTest::jsonSchemaDataProvider in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ DateTimeIso8601NormalizerTest.php - DateTimeNormalizerTest::jsonSchemaDataProvider in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ DateTimeNormalizerTest.php - Generate test data for date data providers.
- JsonApiTopLevelResourceNormalizerTest::jsonSchemaDataProvider in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiTopLevelResourceNormalizerTest.php - MarkupNormalizerTest::jsonSchemaDataProvider in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ MarkupNormalizerTest.php - NullNormalizerTest::jsonSchemaDataProvider in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ NullNormalizerTest.php
File
-
core/
modules/ serialization/ tests/ src/ Traits/ JsonSchemaTestTrait.php, line 33
Class
- JsonSchemaTestTrait
- Trait for testing JSON Schema validity and fit to sample data.
Namespace
Drupal\Tests\serialization\TraitsCode
public static abstract function jsonSchemaDataProvider() : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.