mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Improve test coverage and quality
This commit is contained in:
@@ -57,7 +57,7 @@ class BunqJobConfigurationTest extends TestCase
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'bunq_jc_A' . random_int(1, 100000);
|
||||
$job->key = 'bunq_jc_A' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
@@ -154,7 +154,7 @@ class BunqJobConfigurationTest extends TestCase
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'bunq_jc_E' . random_int(1, 100000);
|
||||
$job->key = 'bunq_jc_E' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'choose-accounts';
|
||||
$job->provider = 'bunq';
|
||||
|
@@ -58,7 +58,7 @@ class YnabJobConfigurationTest extends TestCase
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'ynab_jc_A' . random_int(1, 100000);
|
||||
$job->key = 'ynab_jc_A' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'ynab';
|
||||
@@ -155,7 +155,7 @@ class YnabJobConfigurationTest extends TestCase
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'ynab_jc_E' . random_int(1, 100000);
|
||||
$job->key = 'ynab_jc_E' . $this->randomInt();
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'ynab';
|
||||
|
Reference in New Issue
Block a user