mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +00:00
Improve randomness in test data to prevent key collisions.
This commit is contained in:
@@ -55,7 +55,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'A_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'A_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
@@ -85,7 +85,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'B_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'B_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'some_Bad_state';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
@@ -105,7 +105,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'C_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'C_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
@@ -136,7 +136,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'D_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'D_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
@@ -166,7 +166,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'D_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'D_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'badstate';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
@@ -213,7 +213,7 @@ class PrerequisitesControllerTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'D_pre_job_' . random_int(1, 1000);
|
||||
$job->key = 'D_pre_job_' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->provider = 'fake';
|
||||
$job->transactions = [];
|
||||
|
Reference in New Issue
Block a user