You are here

public function StaticDiscoveryDecoratorTest::providerGetDefinitions in Drupal 9

Same name and namespace in other branches
  1. 8 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 120

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',
      ],
    ],
  ];
}