protected function LocalTaskDefaultTest::setupLocalTaskDefault in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::setupLocalTaskDefault()
Setups the local task default.
11 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 77 - Contains \Drupal\Tests\Core\Menu\LocalTaskDefaultTest.
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);
}