function PluginBaseTest::testGetDerivativeId
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetDerivativeId()
- 8.9.x core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetDerivativeId()
- 10 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 72
Class
- PluginBaseTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Component%21Plugin%21PluginBase.php/class/PluginBase/11.x" title="Base class for plugins wishing to support metadata inspection." class="local">\Drupal\Component\Plugin\PluginBase</a> @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetDerivativeId($plugin_id = NULL, $expected = NULL) : void {
/** @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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.