public function WebformOptionsHelperTest::providerDecodeConfig 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::providerDecodeConfig()
Data provider for testDecodeConfig().
See also
testDecodeConfig()
File
- tests/
src/ Unit/ Utility/ WebformOptionsHelperTest.php, line 211
Class
- WebformOptionsHelperTest
- Tests webform options utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function providerDecodeConfig() {
$tests[] = [
[
[
'value' => 'one',
'text' => 1,
],
[
'value' => 'two',
'text' => 2,
],
[
'value' => 'with.period',
'text' => 'with period',
],
],
[
'one' => 1,
'two' => 2,
'with.period' => 'with period',
],
];
return $tests;
}