Fix test coverage.

This commit is contained in:
James Cole
2019-01-27 12:30:52 +01:00
parent c3e6e4f034
commit f6d88521dd
6 changed files with 55 additions and 38 deletions

View File

@@ -133,9 +133,9 @@ class AccountTransformer extends AbstractTransformer
*
* @param string $accountType
*
* @return string
* @return string|null
*/
private function getAccountRole(Account $account, string $accountType): string
private function getAccountRole(Account $account, string $accountType): ?string
{
$accountRole = $this->repository->getMetaValue($account, 'accountRole');
if ('asset' !== $accountType || '' === (string)$accountRole) {
@@ -146,13 +146,13 @@ class AccountTransformer extends AbstractTransformer
}
/**
* @param Account $account
* @param string $accountRole
* @param string $accountType
* @param Account $account
* @param string|null $accountRole
* @param string $accountType
*
* @return array
*/
private function getCCInfo(Account $account, string $accountRole, string $accountType): array
private function getCCInfo(Account $account, ?string $accountRole, string $accountType): array
{
$monthlyPaymentDate = null;
$creditCardType = null;