mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 03:53:37 +00:00
Improve randomness in test data to prevent key collisions.
This commit is contained in:
@@ -39,7 +39,7 @@ class SetDescriptionTest extends TestCase
|
||||
public function testAct(): void
|
||||
{
|
||||
// get journal, give fixed description
|
||||
$description = 'text' . random_int(1, 1000);
|
||||
$description = 'text' . random_int(1, 10000);
|
||||
$newDescription = 'new description' . random_int(1, 1234);
|
||||
$journal = TransactionJournal::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
$journal->description = $description;
|
||||
|
Reference in New Issue
Block a user