function LocalTaskDefaultTest::setupLocalTaskDefault

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
  2. 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
  3. 11.x 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

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

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