public function YamlFormElementHelperTest::testRemoveIgnoredProperties in YAML Form 8
Tests YamlFormElementHelper::RemoveIgnoredProperties().
@dataProvider providerRemoveIgnoredProperties
Parameters
array $element: The array to run through YamlFormElementHelper::RemoveIgnoredProperties().
string $expected: The expected result from calling the function.
See also
YamlFormElementHelperl::RemoveIgnoredProperties()
File
- tests/
src/ Unit/ YamlFormElementHelperTest.php, line 75
Class
- YamlFormElementHelperTest
- Tests form element utility.
Namespace
Drupal\Tests\yamlform\UnitCode
public function testRemoveIgnoredProperties(array $element, $expected) {
$result = YamlFormElementHelper::removeIgnoredProperties($element);
$this
->assertEquals($expected, $result);
}