public function PluginDefinitionValidatorTest::providerValidateClass in Plugin 8.2
Provides data to self::testValidateClass().
File
- tests/
src/ Unit/ PluginDefinition/ PluginDefinitionValidatorTest.php, line 37
Class
- PluginDefinitionValidatorTest
- @coversDefaultClass \Drupal\plugin\PluginDefinition\PluginDefinitionValidator
Namespace
Drupal\Tests\plugin\Unit\PluginDefinitionCode
public function providerValidateClass() {
return [
[
TRUE,
'\\stdClass',
],
[
TRUE,
__CLASS__,
],
[
FALSE,
NULL,
],
[
FALSE,
$this
->randomMachineName(),
],
[
FALSE,
'\\Foo\\Bar\\Baz\\Qux',
],
];
}