test: improve services rules validation (#1986)

This commit is contained in:
Alexis Saettler
2018-11-02 16:34:22 +01:00
committed by GitHub
parent 769d795109
commit 444babbb43
53 changed files with 639 additions and 531 deletions
@@ -39,7 +39,7 @@ class IntroductionsController extends Controller
Contact::where('account_id', auth()->user()->account_id)
->findOrFail($request->get('metThroughId'));
} catch (ModelNotFoundException $e) {
return $this->respondNotFound();
return $this->handleModelNotFound($e);
}
$contact->first_met_through_contact_id = $request->get('metThroughId');