New unit tests.

This commit is contained in:
James Cole
2017-10-04 15:27:20 +02:00
parent 6770b8396a
commit c17a278e57
18 changed files with 1098 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ class SetSourceAccount implements ActionInterface
if ($count > 2) {
Log::error(sprintf('Cannot change source account of journal #%d because it is a split journal.', $journal->id));
return true;
return false;
}
// journal type:
@@ -80,7 +80,7 @@ class SetSourceAccount implements ActionInterface
)
);
return true;
return false;
}
// if this is a deposit, the new source account must be a revenue account and may be created: