function ContextualLinkDefaultTest::testGetGroup

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

@covers ::getGroup

File

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

Class

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

Namespace

Drupal\Tests\Core\Menu

Code

public function testGetGroup($group_name = 'test_group') : void {
    $this->pluginDefinition['group'] = $group_name;
    $this->setupContextualLinkDefault();
    $this->assertEquals($group_name, $this->contextualLinkDefault
        ->getGroup());
}

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