function FieldInputValueNormalizerTraitTest::testKeyValueByDelta
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php \Drupal\Tests\Core\Field\FieldInputValueNormalizerTraitTest::testKeyValueByDelta()
- 9 core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php \Drupal\Tests\Core\Field\FieldInputValueNormalizerTraitTest::testKeyValueByDelta()
- 8.9.x core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php \Drupal\Tests\Core\Field\FieldInputValueNormalizerTraitTest::testKeyValueByDelta()
Tests key value by delta.
@legacy-covers ::normalizeValue
Attributes
#[DataProvider('keyValueByDeltaTestCases')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Field/ FieldInputValueNormalizerTraitTest.php, line 27
Class
Namespace
Drupal\Tests\Core\FieldCode
public function testKeyValueByDelta($input_value, $expected_value, $main_property_name = 'value') : void {
$this->assertEquals($expected_value, $this->normalizeValue($input_value, $main_property_name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.