From 574ee820a9155fa3989a5a0a1dfe57cdb23b3655 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Tue, 13 Jun 2017 02:37:50 +0530 Subject: [PATCH] #47 - Fixes the issues with the test case. --- tests/Permissions/RolesTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {