public function WebformOptionsHelperTest::testDecodeConfig in Webform 8.5
Same name and namespace in other branches
- 6.x tests/src/Unit/Utility/WebformOptionsHelperTest.php \Drupal\Tests\webform\Unit\Utility\WebformOptionsHelperTest::testDecodeConfig()
Tests WebformOptionsHelper::decodeConfig().
@dataProvider providerDecodeConfig
Parameters
array $options: The options array to run through WebformOptionsHelper::decodeConfig().
string $expected: The expected result from calling the function.
See also
WebformOptionsHelper::decodeConfig()
File
- tests/
src/ Unit/ Utility/ WebformOptionsHelperTest.php, line 201
Class
- WebformOptionsHelperTest
- Tests webform options utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function testDecodeConfig(array $options, $expected) {
$result = WebformOptionsHelper::decodeConfig($options);
$this
->assertEquals($expected, $result);
}