trait RandomGeneratorTrait in SimpleTest 8.3
Provides random generator utility methods.
Hierarchy
- trait \Drupal\simpletest\RandomGeneratorTrait uses RandomGeneratorTrait
Deprecated
in Drupal 8.1.1, will be removed before Drupal 9.0.0. Use \Drupal\Tests\RandomGeneratorTrait instead.
See also
\Drupal\Tests
File
- src/
RandomGeneratorTrait.php, line 17
Namespace
Drupal\simpletestView source
trait RandomGeneratorTrait {
use BaseGeneratorTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RandomGeneratorTrait:: |
protected | property | The random generator. | |
RandomGeneratorTrait:: |
protected | function | Gets the random generator for the utility methods. | |
RandomGeneratorTrait:: |
protected | function | Generates a unique random string containing letters and numbers. | 1 |
RandomGeneratorTrait:: |
public | function | Generates a random PHP object. | |
RandomGeneratorTrait:: |
public | function | Generates a pseudo-random string of ASCII characters of codes 32 to 126. | |
RandomGeneratorTrait:: |
public | function | Callback for random string validation. |