public function ArrayPluginDefinitionDecoratorTest::testMergeDefaultDefinitionWithInvalidOtherDefinition in Plugin 8.2
@covers ::mergeDefaultDefinition @covers ::validateMergeDefinition @covers ::isDefinitionCompatible
@depends testMergeDefaultDefinition
File
- tests/
src/ Unit/ PluginDefinition/ ArrayPluginDefinitionDecoratorTest.php, line 382
Class
- ArrayPluginDefinitionDecoratorTest
- @coversDefaultClass \Drupal\plugin\PluginDefinition\ArrayPluginDefinitionDecorator
Namespace
Drupal\Tests\plugin\Unit\PluginDefinitionCode
public function testMergeDefaultDefinitionWithInvalidOtherDefinition() {
$this
->expectException(InvalidArgumentException::class);
$other_definition = $this
->createMock(PluginDefinitionInterface::class);
$this->sut
->mergeDefaultDefinition($other_definition);
}