function ConditionPluginBaseTest::providerTestValidateConfigurationForm
Data provider for testValidateConfigurationForm().
File
-
core/
tests/ Drupal/ Tests/ Core/ Condition/ ConditionPluginBaseTest.php, line 40
Class
Namespace
Drupal\Tests\Core\ConditionCode
public static function providerTestValidateConfigurationForm() : \Iterator {
yield 'unchecked checkbox' => [
0,
FALSE,
];
yield 'checked checkbox' => [
1,
TRUE,
];
yield 'unchecked checkbox as string' => [
'0',
FALSE,
];
yield 'checked checkbox as string' => [
'1',
TRUE,
];
yield 'empty string' => [
'',
FALSE,
];
yield 'boolean false' => [
FALSE,
FALSE,
];
yield 'boolean true' => [
TRUE,
TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.