Fix test that could come up with journals with 0 transactions, and improve test coverage for file routine.

This commit is contained in:
James Cole
2018-05-10 20:05:02 +02:00
parent 6bd23d897f
commit 274162afcd
10 changed files with 655 additions and 400 deletions

View File

@@ -41,7 +41,7 @@ class FakeRoutineTest extends TestCase
/**
* @covers \FireflyIII\Import\Routine\FakeRoutine
*/
public function testRunAhoy()
public function testRunAhoy(): void
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
@@ -76,7 +76,7 @@ class FakeRoutineTest extends TestCase
/**
* @covers \FireflyIII\Import\Routine\FakeRoutine
*/
public function testRunFinal()
public function testRunFinal(): void
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
@@ -112,7 +112,7 @@ class FakeRoutineTest extends TestCase
/**
* @covers \FireflyIII\Import\Routine\FakeRoutine
*/
public function testRunNew()
public function testRunNew(): void
{
$job = new ImportJob;
$job->user_id = $this->user()->id;