public function PluginBaseTest::testGetPluginDefinition in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetPluginDefinition()
- 10 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::testGetPluginDefinition()
@covers ::getPluginDefinition
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ PluginBaseTest.php, line 96
Class
- PluginBaseTest
- @coversDefaultClass \Drupal\Component\Plugin\PluginBase @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetPluginDefinition() {
$plugin_base = $this
->getMockForAbstractClass('Drupal\\Component\\Plugin\\PluginBase', [
[],
'plugin_id',
[
'value',
[
'key' => 'value',
],
],
]);
$this
->assertEquals([
'value',
[
'key' => 'value',
],
], $plugin_base
->getPluginDefinition());
}