You are here

public function PluginDefinitionValidatorTest::providerValidateDeriverClass in Plugin 8.2

Provides data to self::testValidateDeriverClass().

File

tests/src/Unit/PluginDefinition/PluginDefinitionValidatorTest.php, line 68

Class

PluginDefinitionValidatorTest
@coversDefaultClass \Drupal\plugin\PluginDefinition\PluginDefinitionValidator

Namespace

Drupal\Tests\plugin\Unit\PluginDefinition

Code

public function providerValidateDeriverClass() {
  return [
    [
      TRUE,
      $this
        ->getMockClass(DeriverInterface::class),
    ],
    [
      FALSE,
      NULL,
    ],
    [
      FALSE,
      '\\stdClass',
    ],
    [
      FALSE,
      $this
        ->randomMachineName(),
    ],
    [
      FALSE,
      '\\Foo\\Bar\\Baz\\Qux',
    ],
  ];
}