@trigger_error(__FUNCTION__.'() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. See https://www.drupal.org/node/3027453',E_USER_DEPRECATED);
@trigger_error(__FUNCTION__.'() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. See https://www.drupal.org/node/3027453',E_USER_DEPRECATED);
* Tests deprecation of the menu_list_system_menus() function.
*/
publicfunctiontestListSystemMenus():void{
$this->expectDeprecation('menu_list_system_menus() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. See https://www.drupal.org/node/3027453');
$this->assertSame([
'tools'=>'Tools',
'admin'=>'Administration',
'account'=>'User account menu',
'main'=>'Main navigation',
'footer'=>'Footer menu',
],menu_list_system_menus());
}
/**
* Tests deprecation of the menu_ui_get_menus() function.
*/
publicfunctiontestMenuUiGetMenus():void{
$this->expectDeprecation('menu_ui_get_menus() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\system\Entity\Menu::loadMultiple() instead. See https://www.drupal.org/node/3027453');