public function PluginTypeTest::testEnsureTypedPluginDefinitionWithAlreadyTypedDefinition in Plugin 8.2
@covers ::ensureTypedPluginDefinition @covers ::createFromDefinition @covers ::__construct
File
- tests/
src/ Unit/ PluginType/ PluginTypeTest.php, line 184
Class
- PluginTypeTest
- @coversDefaultClass \Drupal\plugin\PluginType\PluginType
Namespace
Drupal\Tests\plugin\Unit\PluginTypeCode
public function testEnsureTypedPluginDefinitionWithAlreadyTypedDefinition() {
$decorated_plugin_definition = $this
->createMock(PluginDefinitionInterface::class);
$typed_plugin_definition = $this->sut
->ensureTypedPluginDefinition($decorated_plugin_definition);
$this
->assertInstanceOf(PluginDefinitionInterface::class, $typed_plugin_definition);
}