function TestBaseTest::providerRandomStringValidate
Provides data for the random string validation test.
Return value
array
- The expected result of the validation.
- The string to validate.
File
-
core/
modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 65
Class
- TestBaseTest
- @requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase
Namespace
Drupal\Tests\simpletest\UnitCode
public function providerRandomStringValidate() {
return [
[
FALSE,
' curry paste',
],
[
FALSE,
'curry paste ',
],
[
FALSE,
'curry paste',
],
[
FALSE,
'curry paste',
],
[
TRUE,
'curry paste',
],
[
TRUE,
'thai green curry paste',
],
[
TRUE,
'@startswithat',
],
[
TRUE,
'contains@at',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.