function ContextualLinkDefaultTest::testGetWeight
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetWeight()
- 8.9.x core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetWeight()
- 10 core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest::testGetWeight()
@covers ::getWeight
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ ContextualLinkDefaultTest.php, line 147
Class
- ContextualLinkDefaultTest
- @group Menu @coversDefaultClass \Drupal\Core\Menu\ContextualLinkDefault
Namespace
Drupal\Tests\Core\MenuCode
public function testGetWeight($weight = 5) : void {
$this->pluginDefinition['weight'] = $weight;
$this->setupContextualLinkDefault();
$this->assertEquals($weight, $this->contextualLinkDefault
->getWeight());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.