public function PluginTypeManagerTest::testGetPluginTypeWithInvalidPluginTypeId in Plugin 8.2
@covers ::getPluginType
File
- tests/
src/ Unit/ PluginType/ PluginTypeManagerTest.php, line 251
Class
- PluginTypeManagerTest
- @coversDefaultClass \Drupal\plugin\PluginType\PluginTypeManager
Namespace
Drupal\Tests\plugin\Unit\PluginTypeCode
public function testGetPluginTypeWithInvalidPluginTypeId() {
$this
->expectException(InvalidArgumentException::class);
$this->moduleHandler
->expects($this
->any())
->method('getModuleList')
->willReturn([]);
$this->sut
->getPluginType($this
->randomMachineName());
}