public function YamlFormArrayHelperTest::providerToString in YAML Form 8
Data provider for testToString().
See also
testToString()
File
- tests/
src/ Unit/ YamlFormArrayHelperTest.php, line 43
Class
- YamlFormArrayHelperTest
- Tests form array utility.
Namespace
Drupal\Tests\yamlform\UnitCode
public function providerToString() {
$tests[] = [
[
'Jack',
'Jill',
],
'and',
'Jack and Jill',
'YamlFormArrayHelper::toString with Jack and Jill',
];
$tests[] = [
[
'Jack',
'Jill',
],
'or',
'Jack or Jill',
'YamlFormArrayHelper::toString with Jack or Jill',
];
$tests[] = [
[
'Jack',
'Jill',
'Bill',
],
'and',
'Jack, Jill, and Bill',
'YamlFormArrayHelper::toString with Jack and Jill',
];
$tests[] = [
[
'',
],
'and',
'',
'YamlFormArrayHelper::toString with no one',
];
$tests[] = [
[
'Jack',
],
'and',
'Jack',
'YamlFormArrayHelper::toString with just Jack',
];
return $tests;
}