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 SetDestinationAccount implements ActionInterface
if ($count > 2) {
Log::error(sprintf('Cannot change destination account of journal #%d because it is a split journal.', $journal->id));
return true;
return false;
}
// journal type:
@@ -81,7 +81,7 @@ class SetDestinationAccount implements ActionInterface
)
);
return true;
return false;
}
// if this is a withdrawal, the new destination account must be a expense account and may be created: