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