Expand test coverage.

This commit is contained in:
James Cole
2019-07-26 17:48:24 +02:00
parent 6ff4a0b45c
commit d94d34ca63
57 changed files with 2243 additions and 1597 deletions

View File

@@ -60,7 +60,7 @@ class SpectreJobConfigurationTest extends TestCase
$jobRepos->shouldReceive('setUser')->once();
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'spectre_jc_A' . random_int(1, 10000);
$job->key = 'spectre_jc_A' . $this->randomInt();
$job->status = 'new';
$job->stage = 'new';
$job->provider = 'spectre';
@@ -91,7 +91,7 @@ class SpectreJobConfigurationTest extends TestCase
$jobRepos->shouldReceive('setUser')->once();
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'spectre_jc_B' . random_int(1, 10000);
$job->key = 'spectre_jc_B' . $this->randomInt();
$job->status = 'new';
$job->stage = 'do-authenticate';
$job->provider = 'spectre';
@@ -125,7 +125,7 @@ class SpectreJobConfigurationTest extends TestCase
$jobRepos->shouldReceive('setUser')->once();
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'spectre_jc_C' . random_int(1, 10000);
$job->key = 'spectre_jc_C' . $this->randomInt();
$job->status = 'new';
$job->stage = 'choose-login';
$job->provider = 'spectre';
@@ -157,7 +157,7 @@ class SpectreJobConfigurationTest extends TestCase
$jobRepos->shouldReceive('setUser')->once();
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'spectre_jc_D' . random_int(1, 10000);
$job->key = 'spectre_jc_D' . $this->randomInt();
$job->status = 'new';
$job->stage = 'authenticated';
$job->provider = 'spectre';
@@ -188,7 +188,7 @@ class SpectreJobConfigurationTest extends TestCase
$jobRepos->shouldReceive('setUser')->once();
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'spectre_jc_E' . random_int(1, 10000);
$job->key = 'spectre_jc_E' . $this->randomInt();
$job->status = 'new';
$job->stage = 'choose-accounts';
$job->provider = 'spectre';