You are here

public function MenuLegacyTest::testLocalTabs in Drupal 8

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());
}