mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 21:23:36 +00:00
Improve randomness in test data to prevent key collisions.
This commit is contained in:
@@ -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),
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user