public function DefaultPluginManagerTest::test_createInstance_exception in Service Container 7
Same name and namespace in other branches
- 7.2 tests/src/Plugin/DefaultPluginManagerTest.php \Drupal\Tests\service_container\Plugin\DefaultPluginManagerTest::test_createInstance_exception()
@covers ::createInstance() @expectedException \Drupal\Component\Plugin\Exception\PluginNotFoundException
File
- tests/
src/ Plugin/ DefaultPluginManagerTest.php, line 140 - Contains \Drupal\Tests\service_container\Plugin\DefaultPluginManagerTest
Class
- DefaultPluginManagerTest
- @coversDefaultClass \Drupal\service_container\Plugin\DefaultPluginManager @group dic
Namespace
Drupal\Tests\service_container\PluginCode
public function test_createInstance_exception() {
$this->pluginManager
->createInstance('bar');
}