public function DefaultPluginManagerTest::testDefaultPluginManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php \Drupal\Tests\Core\Plugin\DefaultPluginManagerTest::testDefaultPluginManager()
Tests the plugin manager with no cache and altering.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultPluginManagerTest.php, line 114 - Contains \Drupal\Tests\Core\Plugin\DefaultPluginManagerTest.
Class
- DefaultPluginManagerTest
- Tests the DefaultPluginManager.
Namespace
Drupal\Tests\Core\PluginCode
public function testDefaultPluginManager() {
$plugin_manager = new TestPluginManager($this->namespaces, $this->expectedDefinitions, NULL, NULL, '\\Drupal\\plugin_test\\Plugin\\plugin_test\\fruit\\FruitInterface');
$this
->assertEquals($this->expectedDefinitions, $plugin_manager
->getDefinitions());
$this
->assertEquals($this->expectedDefinitions['banana'], $plugin_manager
->getDefinition('banana'));
}