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