mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Improve test coverage.
This commit is contained in:
@@ -467,4 +467,14 @@ class ImportJobRepository implements ImportJobRepositoryInterface
|
||||
|
||||
return $size > $this->maxUploadSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ImportJob $job
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function countByTag(ImportJob $job): int
|
||||
{
|
||||
return $job->tag->transactionJournals->count();
|
||||
}
|
||||
}
|
||||
|
@@ -62,6 +62,13 @@ interface ImportJobRepositoryInterface
|
||||
*/
|
||||
public function countTransactions(ImportJob $job): int;
|
||||
|
||||
/**
|
||||
* @param ImportJob $job
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function countByTag(ImportJob $job): int;
|
||||
|
||||
/**
|
||||
* @param string $importProvider
|
||||
*
|
||||
|
Reference in New Issue
Block a user