public function PluginBaseTest::testGetDerivativeId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 76 
- Contains \Drupal\Tests\Component\Plugin\PluginBaseTest.
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', array(
    array(),
    $plugin_id,
    array(),
  ));
  $this
    ->assertEquals($expected, $plugin_base
    ->getDerivativeId());
}