You are here

public function PluginManagerDecoratorTest::testGetInstance in Plugin 8.2

@covers ::getInstance

File

tests/src/Unit/PluginManager/PluginManagerDecoratorTest.php, line 166

Class

PluginManagerDecoratorTest
@coversDefaultClass \Drupal\plugin\PluginManager\PluginManagerDecorator

Namespace

Drupal\Tests\plugin\Unit\PluginManager

Code

public function testGetInstance() {
  $this
    ->expectException(BadMethodCallException::class);
  $plugin_manager = $this
    ->createMock(PluginManagerInterface::class);
  $this->sut = new PluginManagerDecorator($plugin_manager);
  $this->sut
    ->getInstance([]);
}