public function DefaultLazyPluginCollectionTest::testGetNotExistingPlugin in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testGetNotExistingPlugin()
@covers ::get @expectedException \Drupal\Component\Plugin\Exception\PluginNotFoundException @expectedExceptionMessage Plugin ID 'pear' was not found.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php, line 54 - Contains \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest.
Class
- DefaultLazyPluginCollectionTest
- @coversDefaultClass \Drupal\Core\Plugin\DefaultLazyPluginCollection @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testGetNotExistingPlugin() {
$this
->setupPluginCollection();
$this->defaultPluginCollection
->get('pear');
}