public function PluginBaseTest::testGetPluginId in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetPluginId()
- 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetPluginId()
@dataProvider providerTestGetPluginId @covers ::getPluginId
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ PluginBaseTest.php, line 17
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\Component\Plugin\PluginBase @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetPluginId($plugin_id, $expected) {
$plugin_base = $this
->getMockForAbstractClass('Drupal\\Component\\Plugin\\PluginBase', [
[],
$plugin_id,
[],
]);
$this
->assertEquals($expected, $plugin_base
->getPluginId());
}