public function WebformOptionsHelperTest::providerConvertOptionsToString 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::providerConvertOptionsToString()
Data provider for testConvertOptionsToString().
See also
testConvertOptionsToString()
File
- tests/
src/ Unit/ Utility/ WebformOptionsHelperTest.php, line 103
Class
- WebformOptionsHelperTest
- Tests webform options utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function providerConvertOptionsToString() {
$tests[] = [
[
99 => 99,
],
[
'99' => 99,
],
];
$tests[] = [
[
99.11 => 99,
],
[
'99' => 99,
],
];
$tests[] = [
[
TRUE => 99,
],
[
'1' => 99,
],
];
return $tests;
}