From 0ef5b7f959e17c2a92c3af6da53d16f152005e7d Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 22 May 2023 14:18:39 +0100
Subject: [PATCH] Issue #2466933 by andypost, smustgrave, xjm, effulgentsia:
 Change $info array argument to system_get_module_admin_tasks() to $name

---
 .../tests/src/Kernel/System/SystemFunctionsLegacyTest.php       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php b/core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php
index e3fd9947bc08..b6ee31cd4a20 100644
--- a/core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php
+++ b/core/modules/system/tests/src/Kernel/System/SystemFunctionsLegacyTest.php
@@ -35,7 +35,7 @@ public function testSystemTimeZones() {
   public function testSystemGetModuleAdminTasksArgument() {
     $module_name = 'System';
     $expected = system_get_module_admin_tasks('system', $module_name);
-    $this->expectDeprecation('Calling system_get_module_admin_tasks() with $module_name argument as array is deprecated in drupal:10.2.0 and is required to be staring from drupal:11.0.0. Pass only $info["name"] instead. See https://www.drupal.org/node/3357711');
+    $this->expectDeprecation('Calling system_get_module_admin_tasks() with $module_name argument as array is deprecated in drupal:10.2.0 and is required to be string from drupal:11.0.0. Pass only $info["name"] instead. See https://www.drupal.org/node/3357711');
     $this->assertSame($expected, system_get_module_admin_tasks('system', ['name' => $module_name]));
   }
 
-- 
GitLab