mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Expand test coverage.
This commit is contained in:
@@ -57,7 +57,7 @@ class SpectreRoutineTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'SR2b' . random_int(1, 10000);
|
||||
$job->key = 'SR2b' . $this->randomInt();
|
||||
$job->status = 'ready_to_run';
|
||||
$job->stage = 'authenticated';
|
||||
$job->provider = 'spectre';
|
||||
@@ -95,7 +95,7 @@ class SpectreRoutineTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'SR1A' . random_int(1, 10000);
|
||||
$job->key = 'SR1A' . $this->randomInt();
|
||||
$job->status = 'ready_to_run';
|
||||
$job->stage = 'do-authenticate';
|
||||
$job->provider = 'spectre';
|
||||
@@ -126,7 +126,7 @@ class SpectreRoutineTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'SR3c' . random_int(1, 10000);
|
||||
$job->key = 'SR3c' . $this->randomInt();
|
||||
$job->status = 'ready_to_run';
|
||||
$job->stage = 'go-for-import';
|
||||
$job->provider = 'spectre';
|
||||
@@ -165,7 +165,7 @@ class SpectreRoutineTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'SR4A' . random_int(1, 10000);
|
||||
$job->key = 'SR4A' . $this->randomInt();
|
||||
$job->status = 'ready_to_run';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'spectre';
|
||||
@@ -205,7 +205,7 @@ class SpectreRoutineTest extends TestCase
|
||||
{
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'SR5A' . random_int(1, 10000);
|
||||
$job->key = 'SR5A' . $this->randomInt();
|
||||
$job->status = 'ready_to_run';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'spectre';
|
||||
|
||||
Reference in New Issue
Block a user