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