You are here

public function StaticDiscoveryDecoratorTest::providerGetDefinitions in Zircon Profile 8

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

Data provider for testGetDefinitions().

Return value

array

  • bool Whether the test mock has a callback.
  • array Plugin definitions.

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php, line 125
Contains \Drupal\Tests\Component\Plugin\Discovery\StaticDiscoveryDecoratorTest.

Class

StaticDiscoveryDecoratorTest
@group Plugin @coversDefaultClass Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator

Namespace

Drupal\Tests\Component\Plugin\Discovery

Code

public function providerGetDefinitions() {
  return [
    [
      TRUE,
      [
        'definition' => 'is_fake',
      ],
    ],
    [
      FALSE,
      [
        'definition' => 'array_of_stuff',
      ],
    ],
  ];
}