function 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[[api-linebreak]] @covers ::setActive[[api-linebreak]]
- LocalTaskDefaultTest::testCacheabilityMetadata in core/tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php 
- @covers ::getCacheContexts[[api-linebreak]] @covers ::getCacheTags[[api-linebreak]] @covers ::getCacheMaxAge[[api-linebreak]]
- LocalTaskDefaultTest::testGetOptions in core/tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php 
- @covers ::getOptions[[api-linebreak]]
- LocalTaskDefaultTest::testGetRouteParametersForDynamicRouteWithNonUpcastedParameters in core/tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php 
- @covers ::getRouteParameters[[api-linebreak]]
- LocalTaskDefaultTest::testGetRouteParametersForDynamicRouteWithUpcastedParameters in core/tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php 
- Tests the getRouteParameters method for a route with upcasted parameters.
File
- 
              core/tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 80 
Class
- LocalTaskDefaultTest
- @coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault[[api-linebreak]] @group Menu
Namespace
Drupal\Tests\Core\MenuCode
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.
