Skip to content

NOW MANAGED ON CODEBERG

#47 - Fixes the issues with the test case.

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