public function DiscoveryTraitTest::providerDoGetDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest::providerDoGetDefinition()
Data provider for testDoGetDefinition().
Return value
array
- Expected plugin definition.
- Plugin definition array, to pass to doGetDefinition().
- Plugin ID to get, passed to doGetDefinition().
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ DiscoveryTraitTest.php, line 26 - Contains \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest.
Class
- DiscoveryTraitTest
- @group Plugin @coversDefaultClass Drupal\Component\Plugin\Discovery\DiscoveryTrait
Namespace
Drupal\Tests\Component\Plugin\DiscoveryCode
public function providerDoGetDefinition() {
return array(
[
'definition',
[
'plugin_name' => 'definition',
],
'plugin_name',
],
[
NULL,
[
'plugin_name' => 'definition',
],
'bad_plugin_name',
],
);
}