function 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 185

Class

StaticDiscoveryDecoratorTest
Tests Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator.

Namespace

Drupal\Tests\Component\Plugin\Discovery

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.