public function YamlFormHelperTest::providerCleanupFormStateValues in YAML Form 8
Data provider for testCleanupFormStateValues().
See also
testCleanupFormStateValues()
File
- tests/
src/ Unit/ YamlFormHelperTest.php, line 41
Class
- YamlFormHelperTest
- Tests form helper utility.
Namespace
Drupal\Tests\yamlform\UnitCode
public function providerCleanupFormStateValues() {
$tests[] = [
[
'key' => 'value',
],
[],
[
'key' => 'value',
],
];
$tests[] = [
[
'key' => 'value',
'form_token' => 'ignored',
],
[],
[
'key' => 'value',
],
];
$tests[] = [
[
'key' => 'value',
'form_token' => 'ignored',
],
[
'key',
],
[],
];
return $tests;
}