Skip to content
Snippets Groups Projects
Commit 0ef5b7f9 authored by catch's avatar catch
Browse files

Issue #2466933 by andypost, smustgrave, xjm, effulgentsia: Change $info array...

Issue #2466933 by andypost, smustgrave, xjm, effulgentsia: Change $info array argument to system_get_module_admin_tasks() to $name
parent 42461a87
No related branches found
No related tags found
No related merge requests found
......@@ -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]));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment