public function PluginBaseTest::testGetDerivativeId in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetDerivativeId()
- 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetDerivativeId()
@dataProvider providerTestGetDerivativeId @covers ::getDerivativeId
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ PluginBaseTest.php, line 70
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\Component\Plugin\PluginBase @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetDerivativeId($plugin_id = NULL, $expected = NULL) {
/** @var \Drupal\Component\Plugin\PluginBase|\PHPUnit\Framework\MockObject\MockObject $plugin_base */
$plugin_base = $this
->getMockForAbstractClass('Drupal\\Component\\Plugin\\PluginBase', [
[],
$plugin_id,
[],
]);
$this
->assertEquals($expected, $plugin_base
->getDerivativeId());
}