You are here

public function ArrayPluginDefinitionDecoratorTest::testCreateFromDecoratedDefinitionWithInvalidDecoratedDefinition in Plugin 8.2

@covers ::createFromDecoratedDefinition

@dataProvider providerCreateFromDecoratedDefinitionWithInvalidDecoratedDefinition

File

tests/src/Unit/PluginDefinition/ArrayPluginDefinitionDecoratorTest.php, line 607

Class

ArrayPluginDefinitionDecoratorTest
@coversDefaultClass \Drupal\plugin\PluginDefinition\ArrayPluginDefinitionDecorator

Namespace

Drupal\Tests\plugin\Unit\PluginDefinition

Code

public function testCreateFromDecoratedDefinitionWithInvalidDecoratedDefinition($decorated_definition) {
  $this
    ->expectException(InvalidArgumentException::class);
  $this
    ->assertInstanceOf(ArrayPluginDefinitionDecorator::class, ArrayPluginDefinitionDecorator::createFromDecoratedDefinition($decorated_definition));
}