]> BookStack Code Mirror - bookstack/commitdiff
#47 - Fixes the issues with the test case. 261/head
authorAbijeet <redacted>
Mon, 12 Jun 2017 21:07:50 +0000 (02:37 +0530)
committerAbijeet <redacted>
Mon, 12 Jun 2017 21:07:50 +0000 (02:37 +0530)
tests/Permissions/RolesTest.php

index 9d054fe0b9b3924e58af0511e2236d011e7f5148..0e9f691e0d86aa6d737ab211da977a5abf4cb2f1 100644 (file)
@@ -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) {
Morty Proxy This is a proxified and sanitized view of the page, visit original site.