Random values
DrevOps\BehatSteps\Steps\Web\RandomTrait - Source, Steps
Replace random-value tokens in step arguments and table cells.
public function randomGenerate(string $type, array $args): string|int
Dispatches to the type-specific generator
public function randomGenerateEmail(): string
Generates a syntactically valid email at the reserved '.test' TLD
public function randomGenerateInt(int $min, int $max): int
Generates an integer in '[min, max]' inclusive
public function randomGenerateMachineName(int $length): string
Generates a lowercase alphanumeric machine name starting with a letter
public function randomGenerateName(int $length): string
Generates a letters-and-digits name with original case preserved
public function randomGenerateString(int $length): string
Generates a lowercase string, the default token type
public function randomGenerateUuid(): string
Generates a UUID v4 string
public function randomResolveLiteral(string $literal): string|int
Resolves a token literal to its generated value
public function randomSubstitute(string $message): string
Substitutes every token match in '$message' via 'randomResolveLiteral()'
public function randomSubstituteTable(TableNode $table): TableNode
Applies 'randomSubstitute()' across every cell in '$table'