You are here

public function StaticDiscoveryDecoratorTest::providerCall in Drupal 8

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

Data provider for testCall().

Return value

array

  • Method name.
  • Array of arguments to pass to the method, with the expectation that our mocked __call() will return them.

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php, line 188

Class

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

Namespace

Drupal\Tests\Component\Plugin\Discovery

Code

public function providerCall() {
  return [
    [
      'complexArguments',
      [
        '1',
        2.0,
        3,
        [
          '4' => 'five',
        ],
      ],
    ],
    [
      'noArguments',
      [],
    ],
  ];
}