function JsonSchemaTestTrait::supportedTypesDataProvider
Same name and namespace in other branches
- 11.x core/modules/serialization/tests/src/Traits/JsonSchemaTestTrait.php \Drupal\Tests\serialization\Traits\JsonSchemaTestTrait::supportedTypesDataProvider()
Return value
array Supported types for which to test schema generation.
File
-
core/
modules/ serialization/ tests/ src/ Traits/ JsonSchemaTestTrait.php, line 111
Class
- JsonSchemaTestTrait
- Trait for testing JSON Schema validity and fit to sample data.
Namespace
Drupal\Tests\serialization\TraitsCode
public static function supportedTypesDataProvider() : array {
return array_map(fn(string $type): array => [
$type,
], array_keys((new PrimitiveDataNormalizer())->getSupportedTypes(NULL)));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.