function PluginBaseTest::testGetPluginId
Tests get plugin id.
@legacy-covers ::getPluginId
Attributes
#[DataProvider('providerTestGetPluginId')]
File
-
core/
tests/ Drupal/ Tests/ Component/ Plugin/ PluginBaseTest.php, line 25
Class
Namespace
Drupal\Tests\Component\PluginCode
public function testGetPluginId($plugin_id, $expected) : void {
$plugin_base = new StubPluginBase([], $plugin_id, []);
$this->assertEquals($expected, $plugin_base->getPluginId());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.