function PluginBaseTest::testGetPluginId

@dataProvider providerTestGetPluginId @covers ::getPluginId

File

core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php, line 19

Class

PluginBaseTest
@coversDefaultClass \Drupal\Component\Plugin\PluginBase[[api-linebreak]] @group Plugin

Namespace

Drupal\Tests\Component\Plugin

Code

public function testGetPluginId($plugin_id, $expected) : void {
  $plugin_base = $this->getMockForAbstractClass('Drupal\\Component\\Plugin\\PluginBase', [
    [],
    $plugin_id,
    [],
  ]);
  $this->assertEquals($expected, $plugin_base->getPluginId());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.