public function DefaultFactoryTest::testGetPluginClassWithValidArrayPluginDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Plugin/DefaultFactoryTest.php \Drupal\Tests\Component\Plugin\DefaultFactoryTest::testGetPluginClassWithValidArrayPluginDefinition()
Tests getPluginClass() with a valid array plugin definition.
@covers ::getPluginClass
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ DefaultFactoryTest.php, line 28 - Contains \Drupal\Tests\Component\Plugin\DefaultFactoryTest.
Class
- DefaultFactoryTest
- @coversDefaultClass \Drupal\Component\Plugin\Factory\DefaultFactory @group Plugin
Namespace
Drupal\Tests\Component\PluginCode
public function testGetPluginClassWithValidArrayPluginDefinition() {
$plugin_class = Cherry::class;
$class = DefaultFactory::getPluginClass('cherry', [
'class' => $plugin_class,
]);
$this
->assertEquals($plugin_class, $class);
}