Expand tests.

This commit is contained in:
James Cole
2018-02-19 20:02:27 +01:00
parent e389d0f7fa
commit cae4faad0a
6 changed files with 130 additions and 12 deletions

View File

@@ -339,6 +339,10 @@ class SingleController extends Controller
$doSplit = 1 === intval($request->get('split_journal'));
$createAnother = 1 === intval($request->get('create_another'));
$data = $request->getJournalData();
// todo call factory instead of repository
$journal = $repository->store($data);
if (null === $journal->id) {
// error!