You are here

public function DefaultLazyPluginCollectionTest::testGetNotExistingPlugin in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Plugin

Code

public function testGetNotExistingPlugin() {
  $this
    ->setupPluginCollection();
  $this->defaultPluginCollection
    ->get('pear');
}