public function FieldInputValueNormalizerTraitTest::testKeyValueByDeltaUndefinedVariables in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php \Drupal\Tests\Core\Field\FieldInputValueNormalizerTraitTest::testKeyValueByDeltaUndefinedVariables()
- 9 core/tests/Drupal/Tests/Core/Field/FieldInputValueNormalizerTraitTest.php \Drupal\Tests\Core\Field\FieldInputValueNormalizerTraitTest::testKeyValueByDeltaUndefinedVariables()
@covers ::normalizeValue
File
- core/
tests/ Drupal/ Tests/ Core/ Field/ FieldInputValueNormalizerTraitTest.php, line 96
Class
- FieldInputValueNormalizerTraitTest
- @coversDefaultClass \Drupal\Core\Field\FieldInputValueNormalizerTrait @group Field
Namespace
Drupal\Tests\Core\FieldCode
public function testKeyValueByDeltaUndefinedVariables() {
$this
->assertEquals([], $this
->normalizeValue($undefined_variable, 'value'));
$this
->assertEquals([], $this
->normalizeValue($undefined_variable['undefined_key'], 'value'));
}