Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / editor / src / Tests / QuickEditIntegrationLoadingTest.php
index 7141687bc76cb31f3bd154f696eac49ab29abb3a..a4515d567300f79313c567c5fefb255e538f771e 100644 (file)
@@ -89,12 +89,12 @@ class QuickEditIntegrationLoadingTest extends WebTestBase {
       $response = $this->drupalPost('editor/' . 'node/1/body/en/full', '', [], ['query' => [MainContentViewSubscriber::WRAPPER_FORMAT => 'drupal_ajax']]);
       $this->assertResponse(403);
       if (!$user->hasPermission('access in-place editing')) {
-        $message = "A fatal error occurred: The 'access in-place editing' permission is required.";
-        $this->assertIdentical(Json::encode(['message' => $message]), $response);
+        $message = "The 'access in-place editing' permission is required.";
       }
       else {
-        $this->assertIdentical('{}', $response);
+        $message = '';
       }
+      $this->assertIdentical(Json::encode(['message' => $message]), $response);
     }
   }