From f6165c1aa6b81a12aa0d3f5c7b687472fb4594a6 Mon Sep 17 00:00:00 2001
From: catch <6915-catch@users.noreply.drupalcode.org>
Date: Sat, 10 Aug 2024 10:45:12 +0900
Subject: [PATCH] Issue #3463267 by idebr, quietone, smustgrave: Remove
 lingering 'priority' keys from node access records in test modules

---
 .../tests/modules/node_access_test/node_access_test.module     | 3 ---
 .../node_access_test_language/node_access_test_language.module | 1 -
 core/modules/node/tests/modules/node_test/node_test.module     | 2 --
 3 files changed, 6 deletions(-)

diff --git a/core/modules/node/tests/modules/node_access_test/node_access_test.module b/core/modules/node/tests/modules/node_access_test/node_access_test.module
index 8f94b0de5f19..f1ae04f0bfc9 100644
--- a/core/modules/node/tests/modules/node_access_test/node_access_test.module
+++ b/core/modules/node/tests/modules/node_access_test/node_access_test.module
@@ -88,7 +88,6 @@ function node_access_test_node_access_records(NodeInterface $node) {
       'grant_view' => 1,
       'grant_update' => 0,
       'grant_delete' => 0,
-      'priority' => 0,
     ];
     $grants[] = [
       'realm' => 'node_access_test',
@@ -96,7 +95,6 @@ function node_access_test_node_access_records(NodeInterface $node) {
       'grant_view' => 1,
       'grant_update' => 0,
       'grant_delete' => 0,
-      'priority' => 0,
     ];
     // For the author realm, the group ID is equivalent to a user ID, which
     // means there are many groups of just 1 user.
@@ -106,7 +104,6 @@ function node_access_test_node_access_records(NodeInterface $node) {
       'grant_view' => 1,
       'grant_update' => 1,
       'grant_delete' => 1,
-      'priority' => 0,
     ];
   }
 
diff --git a/core/modules/node/tests/modules/node_access_test_language/node_access_test_language.module b/core/modules/node/tests/modules/node_access_test_language/node_access_test_language.module
index 5a873ab9b5d5..fec0ddb855fa 100644
--- a/core/modules/node/tests/modules/node_access_test_language/node_access_test_language.module
+++ b/core/modules/node/tests/modules/node_access_test_language/node_access_test_language.module
@@ -36,7 +36,6 @@ function node_access_test_language_node_access_records(NodeInterface $node) {
       'grant_view' => empty($translation->field_private->value) ? 1 : 0,
       'grant_update' => 0,
       'grant_delete' => 0,
-      'priority' => 0,
       'langcode' => $langcode,
     ];
   }
diff --git a/core/modules/node/tests/modules/node_test/node_test.module b/core/modules/node/tests/modules/node_test/node_test.module
index f5636cb0615f..c0f02ee1247d 100644
--- a/core/modules/node/tests/modules/node_test/node_test.module
+++ b/core/modules/node/tests/modules/node_test/node_test.module
@@ -83,7 +83,6 @@ function node_test_node_access_records(NodeInterface $node) {
       'grant_view' => 1,
       'grant_update' => 0,
       'grant_delete' => 0,
-      'priority' => 0,
     ];
   }
   elseif ($node->getType() == 'page') {
@@ -94,7 +93,6 @@ function node_test_node_access_records(NodeInterface $node) {
       'grant_view' => 1,
       'grant_update' => 0,
       'grant_delete' => 0,
-      'priority' => 0,
     ];
   }
   return $grants;
-- 
GitLab