mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Improve test coverage.
This commit is contained in:
@@ -128,6 +128,7 @@ class JobStatusControllerTest extends TestCase
|
||||
|
||||
$this->mockDefaultSession();
|
||||
$importRepos->shouldReceive('countTransactions')->once()->andReturn(0);
|
||||
$importRepos->shouldReceive('countByTag')->atLeast()->once()->andReturn(0);
|
||||
|
||||
// call thing.
|
||||
$this->be($this->user());
|
||||
@@ -155,6 +156,7 @@ class JobStatusControllerTest extends TestCase
|
||||
$this->mockDefaultSession();
|
||||
|
||||
$importRepos->shouldReceive('countTransactions')->once()->andReturn(2);
|
||||
$importRepos->shouldReceive('countByTag')->atLeast()->once()->andReturn(2);
|
||||
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
@@ -191,6 +193,7 @@ class JobStatusControllerTest extends TestCase
|
||||
$this->mockDefaultSession();
|
||||
|
||||
$importRepos->shouldReceive('countTransactions')->once()->andReturn(1);
|
||||
$importRepos->shouldReceive('countByTag')->atLeast()->once()->andReturn(1);
|
||||
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
|
||||
Reference in New Issue
Block a user