public function LocalTaskDefaultTest::testGetWeight 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::testGetWeight()
@dataProvider providerTestGetWeight @covers ::getWeight
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskDefaultTest.php, line 212 - Contains \Drupal\Tests\Core\Menu\LocalTaskDefaultTest.
Class
- LocalTaskDefaultTest
- @coversDefaultClass \Drupal\Core\Menu\LocalTaskDefault @group Menu
Namespace
Drupal\Tests\Core\MenuCode
public function testGetWeight($plugin_definition, $plugin_id, $expected_weight) {
$this->pluginDefinition = $plugin_definition;
$this->pluginId = $plugin_id;
$this
->setupLocalTaskDefault();
$this
->assertEquals($expected_weight, $this->localTaskBase
->getWeight());
}