public function WebformElementHelperTest::testGetIgnoredProperties in Webform 8.5
Same name and namespace in other branches
- 6.x tests/src/Unit/Utility/WebformElementHelperTest.php \Drupal\Tests\webform\Unit\Utility\WebformElementHelperTest::testGetIgnoredProperties()
Tests WebformElementHelper::GetIgnoredProperties().
@dataProvider providerGetIgnoredProperties
Parameters
array $element: The array to run through WebformElementHelper::GetIgnoredProperties().
string $expected: The expected result from calling the function.
See also
WebformElementHelper::GetIgnoredProperties()
File
- tests/
src/ Unit/ Utility/ WebformElementHelperTest.php, line 62
Class
- WebformElementHelperTest
- Tests webform element utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function testGetIgnoredProperties(array $element, $expected) {
$result = WebformElementHelper::getIgnoredProperties($element);
$this
->assertEquals($expected, $result);
}