public function FieldInputValueNormalizerTraitTest::testKeyValueByDelta in Drupal 10
Same name and namespace in other branches
- 8 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()
@dataProvider keyValueByDeltaTestCases @covers ::normalizeValue
File
- core/
tests/ Drupal/ Tests/ Core/ Field/ FieldInputValueNormalizerTraitTest.php, line 20
Class
- FieldInputValueNormalizerTraitTest
- @coversDefaultClass \Drupal\Core\Field\FieldInputValueNormalizerTrait @group Field
Namespace
Drupal\Tests\Core\FieldCode
public function testKeyValueByDelta($input_value, $expected_value, $main_property_name = 'value') {
$this
->assertEquals($expected_value, $this
->normalizeValue($input_value, $main_property_name));
}