From: Abijeet Date: Mon, 12 Jun 2017 21:07:50 +0000 (+0530) Subject: #47 - Fixes the issues with the test case. X-Git-Tag: v0.18.0~1^2~45^2^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/261/head?ds=inline #47 - Fixes the issues with the test case. --- diff --git a/tests/Permissions/RolesTest.php b/tests/Permissions/RolesTest.php index 9d054fe0b..0e9f691e0 100644 --- a/tests/Permissions/RolesTest.php +++ b/tests/Permissions/RolesTest.php @@ -706,8 +706,10 @@ class RolesTest extends BrowserKitTest $this->json('POST', $url, $request); $resp = $this->decodeResponseJson(); - return $resp['comment']; - + if (isset($resp['comment'])) { + return $resp['comment']; + } + return null; } private function updateComment($page, $commentId) {