Skip to content
Snippets Groups Projects
Commit 00ac139c authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Issue #3488863 by claudiu.cristea, alorenc: An unpredictable pipeline failure

parent 9470e383
No related branches found
No related tags found
1 merge request!149Use more realistic names
Pipeline #346123 passed
......@@ -30,13 +30,16 @@ trait PrivateMessageTestTrait {
*/
protected function createTestingUsers(int $amount = 2): void {
$keys = array_map(fn(int $i): string => chr($i + 96), range(1, $amount));
$randomGenerator = $this->getRandomGenerator();
foreach ($keys as $key) {
$firstName = ucfirst($randomGenerator->word(rand(5, 9)));
$lastName = ucfirst($randomGenerator->word(rand(5, 9)));
$values = FieldConfig::loadByName(
'user',
'user',
'full_name'
) ? ['full_name' => $this->randomString()] : [];
) ? ['full_name' => "$firstName $lastName"] : [];
$this->users[$key] = $this->createUser([
'use private messaging system',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment