function ContextualLinkDefaultTest::testGetRouteName

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetRouteName()
  2. 8.9.x core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetRouteName()
  3. 11.x core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetRouteName()

@covers ::getRouteName

File

core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php, line 117

Class

ContextualLinkDefaultTest
@group Menu @coversDefaultClass \Drupal\Core\Menu\ContextualLinkDefault

Namespace

Drupal\Tests\Core\Menu

Code

public function testGetRouteName($route_name = 'test_route_name') : void {
    $this->pluginDefinition['route_name'] = $route_name;
    $this->setupContextualLinkDefault();
    $this->assertEquals($route_name, $this->contextualLinkDefault
        ->getRouteName());
}

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