From 2364c7552a9e0537d8061e23c4c9b33fd3d2ae63 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Sun, 20 Aug 2023 09:09:00 +0100
Subject: [PATCH] Issue #3144933 by andypost, jhodgdon: Add help_search plugin
 to the base admin theme test

---
 .../tests/src/Functional/SearchAdminThemeTest.php      | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/core/modules/search/tests/src/Functional/SearchAdminThemeTest.php b/core/modules/search/tests/src/Functional/SearchAdminThemeTest.php
index 0443f48ed792..6e3ad66ff4a4 100644
--- a/core/modules/search/tests/src/Functional/SearchAdminThemeTest.php
+++ b/core/modules/search/tests/src/Functional/SearchAdminThemeTest.php
@@ -18,7 +18,13 @@ class SearchAdminThemeTest extends BrowserTestBase {
   /**
    * {@inheritdoc}
    */
-  protected static $modules = ['node', 'search', 'search_extra_type', 'user'];
+  protected static $modules = [
+    'help',
+    'node',
+    'search',
+    'search_extra_type',
+    'user',
+  ];
 
   /**
    * {@inheritdoc}
@@ -48,6 +54,7 @@ protected function setUp(): void {
     $user = $this->drupalCreateUser([
       'access content',
       'search content',
+      'access help pages',
       'access user profiles',
       'view the administration theme',
     ]);
@@ -70,6 +77,7 @@ public function testSearchUsingAdminTheme() {
     $page_ids = [
       'node_search' => FALSE,
       'dummy_search_type' => TRUE,
+      'help_search' => TRUE,
       'user_search' => FALSE,
     ];
     foreach ($page_ids as $page_id => $use_admin_theme) {
-- 
GitLab