mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 03:51:18 +00:00
Improve randomness in test data to prevent key collisions.
This commit is contained in:
@@ -91,6 +91,6 @@ class PiggyBankFactoryTest extends TestCase
|
||||
/** @var PiggyBankFactory $factory */
|
||||
$factory = app(PiggyBankFactory::class);
|
||||
$factory->setUser($this->user());
|
||||
$this->assertNull($factory->find(null, 'I dont exist.' . random_int(1, 1000)));
|
||||
$this->assertNull($factory->find(null, 'I dont exist.' . random_int(1, 10000)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user