function MenuLegacyTest::testPrimaryLocalTasks

Tests deprecation of the menu_primary_local_tasks() function.

@expectedDeprecation menu_primary_local_tasks() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasks() instead. See https://www.drupal.org/node/2874695

File

core/tests/Drupal/KernelTests/Core/Menu/MenuLegacyTest.php, line 28

Class

MenuLegacyTest
Deprecation tests cases for the menu layer.

Namespace

Drupal\KernelTests\Core\Menu

Code

public function testPrimaryLocalTasks() {
    $this->assertSame('', menu_primary_local_tasks());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.