function PluginBaseTest::testGetPluginDefinition
@covers ::getPluginDefinition
      
    
File
- 
              core/tests/ Drupal/ Tests/ Component/ Plugin/ PluginBaseTest.php, line 98 
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\Component\Plugin\PluginBase[[api-linebreak]] @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetPluginDefinition() : void {
  $plugin_base = $this->getMockForAbstractClass('Drupal\\Component\\Plugin\\PluginBase', [
    [],
    'plugin_id',
    [
      'value',
      [
        'key' => 'value',
      ],
    ],
  ]);
  $this->assertEquals([
    'value',
    [
      'key' => 'value',
    ],
  ], $plugin_base->getPluginDefinition());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
