public function DiscoveryTraitTest::providerHasDefinition 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::providerHasDefinition()
Data provider for testHasDefinition().
Return value
array
- Expected TRUE or FALSE.
- Plugin ID to look for.
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ DiscoveryTraitTest.php, line 130 - 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 providerHasDefinition() {
return array(
[
TRUE,
'valid',
],
[
FALSE,
'not_valid',
],
);
}