function MenuLegacyTest::testLocalTabs

Tests deprecation of the menu_local_tabs() function.

@expectedDeprecation menu_local_tabs() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use local_tasks_block block or inline theming instead. See https://www.drupal.org/node/2874695

File

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

Class

MenuLegacyTest
Deprecation tests cases for the menu layer.

Namespace

Drupal\KernelTests\Core\Menu

Code

public function testLocalTabs() {
    $this->assertSame([], menu_local_tabs());
}

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