function FieldItemSerializationTest::providerTestCustomBooleanNormalization
Same name in other branches
- 9 core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php \Drupal\Tests\serialization\Kernel\FieldItemSerializationTest::providerTestCustomBooleanNormalization()
- 9 core/modules/hal/tests/src/Kernel/serialization/FieldItemSerializationTest.php \Drupal\Tests\hal\Kernel\serialization\FieldItemSerializationTest::providerTestCustomBooleanNormalization()
- 10 core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php \Drupal\Tests\serialization\Kernel\FieldItemSerializationTest::providerTestCustomBooleanNormalization()
- 11.x core/modules/serialization/tests/src/Kernel/FieldItemSerializationTest.php \Drupal\Tests\serialization\Kernel\FieldItemSerializationTest::providerTestCustomBooleanNormalization()
Data provider.
Return value
array Test cases.
File
-
core/
modules/ serialization/ tests/ src/ Kernel/ FieldItemSerializationTest.php, line 216
Class
- FieldItemSerializationTest
- Test field level normalization process.
Namespace
Drupal\Tests\serialization\KernelCode
public function providerTestCustomBooleanNormalization() {
return [
'Format-agnostic @FieldType-level normalizers SHOULD be able to affect the format-agnostic normalization' => [
[
'test_fieldtype_boolean_emoji_normalizer',
],
NULL,
],
'Format-agnostic @DataType-level normalizers SHOULD be able to affect the format-agnostic normalization' => [
[
'test_datatype_boolean_emoji_normalizer',
],
NULL,
],
'Format-agnostic @FieldType-level normalizers SHOULD be able to affect the JSON normalization' => [
[
'test_fieldtype_boolean_emoji_normalizer',
],
'json',
],
'Format-agnostic @DataType-level normalizers SHOULD be able to affect the JSON normalization' => [
[
'test_datatype_boolean_emoji_normalizer',
],
'json',
],
'Format-agnostic @FieldType-level normalizers SHOULD be able to affect the HAL+JSON normalization' => [
[
'test_fieldtype_boolean_emoji_normalizer',
],
'hal_json',
],
'Format-agnostic @DataType-level normalizers SHOULD be able to affect the HAL+JSON normalization' => [
[
'test_datatype_boolean_emoji_normalizer',
'hal',
],
'hal_json',
],
'Format-agnostic @FieldType-level normalizers SHOULD be able to affect the XML normalization' => [
[
'test_fieldtype_boolean_emoji_normalizer',
],
'xml',
],
'Format-agnostic @DataType-level normalizers SHOULD be able to affect the XML normalization' => [
[
'test_datatype_boolean_emoji_normalizer',
'hal',
],
'xml',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.