fixed unit tests and added form model unit test

This commit is contained in:
Jonathan Labreuille
2015-11-06 18:43:56 +01:00
parent 795485d42a
commit b20d92c9b1
8 changed files with 99 additions and 22 deletions

View File

@@ -87,12 +87,7 @@ class Form extends Model {
$form->set($data);
}
try {
$form->save();
return $form;
} catch(Exception $e) {
return $form->getValidationErrors();
}
return false;
$form->save();
return $form;
}
}