class FieldInputValueNormalizerTraitTest extends UnitTestCase
{ use FieldInputValueNormalizerTrait;
/**
* @dataProvider keyValueByDeltaTestCases
* @covers ::normalizeValue
*/
public function testKeyValueByDelta($input_value,
$expected_value,
$main_property_name = 'value'
) { $this->
assertEquals($expected_value,
$this->
normalizeValue($input_value,
$main_property_name));
} /**
* Provides test cases for ::testKeyValueByDelta.
*/
public function keyValueByDeltaTestCases() { return [ 'Integer' =>
[ 1,
[['value' => 1
]],
],