function LocalTaskDefaultTest::testGetWeight
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::testGetWeight()
- 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::testGetWeight()
- 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php \Drupal\Tests\Core\Menu\LocalTaskDefaultTest::testGetWeight()
Tests get weight.
@legacy-covers ::getWeight
Attributes
#[DataProvider('providerTestGetWeight')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 245
Class
Namespace
Drupal\Tests\Core\MenuCode
public function testGetWeight($plugin_definition, $plugin_id, $expected_weight) : void {
$this->pluginDefinition = $plugin_definition;
$this->pluginId = $plugin_id;
$this->setupLocalTaskDefault();
$this->assertEquals($expected_weight, $this->localTaskBase
->getWeight());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.