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) {