diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php index 2874f46..9b9d13c 100644 --- a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php +++ b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php @@ -90,11 +90,11 @@ public function testUsersWithoutPermission() { $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); } else { - $message = "A fatal error occurred: The 'update' permission is required."; + $this->assertIdentical('{}', $response); } - $this->assertIdentical(Json::encode(['message' => $message]), $response); } } diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php index 6f18648..c1b6c65 100644 --- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php +++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @@ -918,7 +918,6 @@ public function testAllowedIfHasPermissions($permissions, $conjunction, AccessRe */ public function providerTestAllowedIfHasPermissions() { $access_result = AccessResult::allowedIf(FALSE); - $access_result->setReason('Access denied.'); $data[] = [[], 'AND', $access_result]; $data[] = [[], 'OR', $access_result];