function LocalTaskDefaultTest::setupLocalTaskDefault
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
- 10 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
- 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.
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 80
Class
- LocalTaskDefaultTest
- @coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @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.