function TestBaseTest::providerRandomItems
Provides data for testRandomString() and others.
Return value
array
- The number of items (characters, object properties) we expect any of the random functions to give us.
File
-
core/
modules/ simpletest/ tests/ src/ Unit/ TestBaseTest.php, line 95
Class
- TestBaseTest
- @requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase
Namespace
Drupal\Tests\simpletest\UnitCode
public function providerRandomItems() {
return [
[
NULL,
],
[
0,
],
[
1,
],
[
2,
],
[
3,
],
[
4,
],
[
7,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.