You are here

public function WebformElementHelperTest::testGetIgnoredProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\Utility

Code

public function testGetIgnoredProperties(array $element, $expected) {
  $result = WebformElementHelper::getIgnoredProperties($element);
  $this
    ->assertEquals($expected, $result);
}