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

@@ -55,7 +55,7 @@ class FakeRoutineTest extends TestCase
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'a_route_' . random_int(1, 10000);
$job->key = 'a_route_' . $this->randomInt();
$job->status = 'ready_to_run';
$job->stage = 'ahoy';
$job->provider = 'fake';
@@ -91,7 +91,7 @@ class FakeRoutineTest extends TestCase
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'a_route_' . random_int(1, 10000);
$job->key = 'a_route_' . $this->randomInt();
$job->status = 'ready_to_run';
$job->stage = 'final';
$job->provider = 'fake';
@@ -128,7 +128,7 @@ class FakeRoutineTest extends TestCase
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'a_route_' . random_int(1, 10000);
$job->key = 'a_route_' . $this->randomInt();
$job->status = 'ready_to_run';
$job->stage = 'new';
$job->provider = 'fake';