You are here

public function DiscoveryTraitTest::providerDoGetDefinitionException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest::providerDoGetDefinitionException()

Data provider for testDoGetDefinitionException()

Return value

array

  • Expected plugin definition.
  • Plugin definition array, to pass to doGetDefinition().
  • Plugin ID to get, passed to doGetDefinition().

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php, line 58
Contains \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest.

Class

DiscoveryTraitTest
@group Plugin @coversDefaultClass Drupal\Component\Plugin\Discovery\DiscoveryTrait

Namespace

Drupal\Tests\Component\Plugin\Discovery

Code

public function providerDoGetDefinitionException() {
  return array(
    [
      FALSE,
      [
        'plugin_name' => 'definition',
      ],
      'bad_plugin_name',
    ],
  );
}