protected function MigrateSourceTestBase::getPluginClass in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::getPluginClass()
- 9 core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::getPluginClass()
Determines the plugin to be tested by reading the class @covers annotation.
Return value
string
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateSourceTestBase.php, line 80
Class
- MigrateSourceTestBase
- Base class for tests of Migrate source plugins.
Namespace
Drupal\Tests\migrate\KernelCode
protected function getPluginClass() {
$annotations = Test::parseTestMethodAnnotations(static::class, $this
->getName());
if (isset($annotations['class']['covers'])) {
return $annotations['class']['covers'][0];
}
else {
$this
->fail('No plugin class was specified');
}
}