Improve randomness in test data to prevent key collisions.

This commit is contained in:
James Cole
2018-07-14 16:41:07 +02:00
parent ff403dfa2e
commit 3d1523a060
50 changed files with 283 additions and 283 deletions

View File

@@ -142,7 +142,7 @@ class AccountTransformerTest extends TestCase
'noteable_id' => $account->id,
'noteable_type' => Account::class,
'title' => null,
'text' => 'I am a note #' . random_int(1, 1000),
'text' => 'I am a note #' . random_int(1, 10000),
]
);
@@ -233,7 +233,7 @@ class AccountTransformerTest extends TestCase
'noteable_id' => $account->id,
'noteable_type' => Account::class,
'title' => null,
'text' => 'I am a note #' . random_int(1, 1000),
'text' => 'I am a note #' . random_int(1, 10000),
]
);
@@ -421,7 +421,7 @@ class AccountTransformerTest extends TestCase
'noteable_id' => $account->id,
'noteable_type' => Account::class,
'title' => null,
'text' => 'I am a note #' . random_int(1, 1000),
'text' => 'I am a note #' . random_int(1, 10000),
]
);