/** * @dataProvider providerTestGetWeight * @covers ::getWeight */ 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()); }