public function LocalTaskDefaultTest::testGetRouteParametersForStaticRoute 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::testGetRouteParametersForStaticRoute()
@covers ::getRouteParameters
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 86 - Contains \Drupal\Tests\Core\Menu\LocalTaskDefaultTest.
Class
- LocalTaskDefaultTest
- @coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @group Menu
Namespace
Drupal\Tests\Core\MenuCode
public function testGetRouteParametersForStaticRoute() {
$this->pluginDefinition = array(
'route_name' => 'test_route',
);
$this->routeProvider
->expects($this
->once())
->method('getRouteByName')
->with('test_route')
->will($this
->returnValue(new Route('/test-route')));
$this
->setupLocalTaskDefault();
$route_match = new RouteMatch('', new Route('/'));
$this
->assertEquals(array(), $this->localTaskBase
->getRouteParameters($route_match));
}