public function JsonApiDocumentTopLevelNormalizerTest::denormalizeUuidProvider in Drupal 10
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php \Drupal\Tests\jsonapi\Unit\Normalizer\JsonApiDocumentTopLevelNormalizerTest::denormalizeUuidProvider()
- 9 core/modules/jsonapi/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php \Drupal\Tests\jsonapi\Unit\Normalizer\JsonApiDocumentTopLevelNormalizerTest::denormalizeUuidProvider()
Provides test cases for testDenormalizeUuid.
File
- core/
modules/ jsonapi/ tests/ src/ Unit/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php, line 242
Class
- JsonApiDocumentTopLevelNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\NormalizerCode
public function denormalizeUuidProvider() {
return [
'valid' => [
'76dd5c18-ea1b-4150-9e75-b21958a2b836',
FALSE,
],
'missing' => [
NULL,
FALSE,
],
'invalid_empty' => [
'',
TRUE,
],
'invalid_alpha' => [
'invalid',
TRUE,
],
'invalid_numeric' => [
1234,
TRUE,
],
'invalid_alphanumeric' => [
'abc123',
TRUE,
],
];
}