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