function StaticDiscoveryDecoratorTest::providerCall
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php \Drupal\Tests\Component\Plugin\Discovery\StaticDiscoveryDecoratorTest::providerCall()
- 10 core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php \Drupal\Tests\Component\Plugin\Discovery\StaticDiscoveryDecoratorTest::providerCall()
- 11.x 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\DiscoveryCode
public 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.