function PluginBaseTest::testGetDerivativeId
Same name 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 71
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\Component\Plugin\PluginBase @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetDerivativeId($plugin_id = NULL, $expected = NULL) : void {
$plugin_base = new StubPluginBase([], $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.