public function WebformOptionsHelperTest::testDecodeConfig in Webform 6.x
Same name and namespace in other branches
- 8.5 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);
}