You are here

protected function LocalTaskDefaultTest::setupLocalTaskDefault in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
  2. 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()

Setups the local task default.

12 calls to LocalTaskDefaultTest::setupLocalTaskDefault()
LocalTaskDefaultTest::testActive in core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@covers ::getActive @covers ::setActive
LocalTaskDefaultTest::testCacheabilityMetadata in core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@covers ::getCacheContexts @covers ::getCacheTags @covers ::getCacheMaxAge
LocalTaskDefaultTest::testGetOptions in core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@covers ::getOptions
LocalTaskDefaultTest::testGetRouteParametersForDynamicRouteWithNonUpcastedParameters in core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@covers ::getRouteParameters
LocalTaskDefaultTest::testGetRouteParametersForDynamicRouteWithUpcastedParameters in core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
Tests the getRouteParameters method for a route with upcasted parameters.

... See full list

File

core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php, line 77
Contains \Drupal\Tests\Core\Menu\LocalTaskDefaultTest.

Class

LocalTaskDefaultTest
@coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @group Menu

Namespace

Drupal\Tests\Core\Menu

Code

protected function setupLocalTaskDefault() {
  $this->localTaskBase = new TestLocalTaskDefault($this->config, $this->pluginId, $this->pluginDefinition);
  $this->localTaskBase
    ->setRouteProvider($this->routeProvider);
}