mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Improve test coverage.
This commit is contained in:
@@ -32,7 +32,7 @@ use Log;
|
||||
|
||||
/**
|
||||
* Trait GetSpectreCustomerTrait
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
trait GetSpectreCustomerTrait
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ use Log;
|
||||
|
||||
/**
|
||||
* Trait GetSpectreTokenTrait
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
trait GetSpectreTokenTrait
|
||||
{
|
||||
|
||||
@@ -119,7 +119,7 @@ class ChooseAccountsHandler implements BunqJobConfigurationInterface
|
||||
|
||||
Log::debug(sprintf('IBAN for bunq account #%d is "%s"', $bunqId, $bunqIban));
|
||||
if (null !== $bunqIban) {
|
||||
$ibanToAsset[$bunqIban] = $accountId;
|
||||
$ibanToAsset[$bunqIban] = $accountId; // @codeCoverageIgnore
|
||||
}
|
||||
$final[$bunqId] = $accountId;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ class ConfigureMappingHandler implements FileConfigurationInterface
|
||||
asort($columnConfig[$columnIndex]['values']);
|
||||
// if the count of this array is zero, there is nothing to map.
|
||||
if (0 === count($columnConfig[$columnIndex]['values'])) {
|
||||
unset($columnConfig[$columnIndex]);
|
||||
unset($columnConfig[$columnIndex]); // @codeCoverageIgnore
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ use FireflyIII\Support\FinTS\FinTS;
|
||||
use Illuminate\Support\MessageBag;
|
||||
|
||||
/**
|
||||
*
|
||||
* Class ChooseAccountHandler
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ChooseAccountHandler implements FinTSConfigurationInterface
|
||||
{
|
||||
|
||||
@@ -32,8 +32,8 @@ use Illuminate\Support\Facades\Crypt;
|
||||
use Illuminate\Support\MessageBag;
|
||||
|
||||
/**
|
||||
*
|
||||
* Class NewFinTSJobHandler
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class NewFinTSJobHandler implements FinTSConfigurationInterface
|
||||
{
|
||||
@@ -62,7 +62,6 @@ class NewFinTSJobHandler implements FinTSConfigurationInterface
|
||||
|
||||
$this->repository->setConfiguration($this->importJob, $config);
|
||||
|
||||
|
||||
$incomplete = false;
|
||||
foreach ($config as $value) {
|
||||
$incomplete = '' === $value or $incomplete;
|
||||
|
||||
@@ -33,6 +33,7 @@ use Log;
|
||||
|
||||
/**
|
||||
* Class ImportTransaction
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ImportTransaction
|
||||
{
|
||||
@@ -179,7 +180,7 @@ class ImportTransaction
|
||||
'date-process' => 'date_process',
|
||||
'date-due' => 'date_due',
|
||||
];
|
||||
if (in_array($role, array_keys($replaceOldRoles))) {
|
||||
if (array_key_exists($role, $replaceOldRoles)) {
|
||||
$role = $replaceOldRoles[$role];
|
||||
}
|
||||
|
||||
|
||||
@@ -114,9 +114,9 @@ class OpposingAccountMapper
|
||||
$creation = [
|
||||
'name' => $data['name'] ?? '(no name)',
|
||||
'iban' => $data['iban'] ?? null,
|
||||
'accountNumber' => $data['number'] ?? null,
|
||||
'account_number' => $data['number'] ?? null,
|
||||
'account_type_id' => null,
|
||||
'account_type' => $expectedType,
|
||||
'account_type' => $expectedType,
|
||||
'active' => true,
|
||||
'BIC' => $data['bic'] ?? null,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user