public function SelectOtherInstallTestScript::randomMachineName in CCK Select Other 8
Generates a unique random string containing letters and numbers.
Parameters
int $length: Length of random string to generate.
Return value
string Randomly generated unique string.
See also
\Drupal\Component\Utility\Random::name()
1 call to SelectOtherInstallTestScript::randomMachineName()
- SelectOtherInstallTestScript::createContentType in tests/
src/ TestSite/ SelectOtherInstallTestScript.php - Install configuration for modules.
File
- tests/
src/ TestSite/ SelectOtherInstallTestScript.php, line 191
Class
- SelectOtherInstallTestScript
- Setup file used for cck_select_other Nightwatch tests.
Namespace
Drupal\Tests\cck_select_other\TestSiteCode
public function randomMachineName($length = 8) {
return $this
->getRandomGenerator()
->name($length, TRUE);
}