public function FieldDiscoveryTest::testGetSourcePlugin in Drupal 10
Same name in this branch
- 10 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testGetSourcePlugin()
- 10 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::testGetSourcePlugin()
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testGetSourcePlugin()
- 9 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testGetSourcePlugin()
Tests the getSourcePlugin method.
@covers ::getSourcePlugin
File
- core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ FieldDiscoveryTest.php, line 299
Class
- FieldDiscoveryTest
- Tests FieldDiscovery service against Drupal 6.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
public function testGetSourcePlugin() {
$this
->assertSourcePlugin('6', FieldInstance::class, [
'requirements_met' => TRUE,
'id' => 'd6_field_instance',
'source_module' => 'content',
'class' => 'Drupal\\field\\Plugin\\migrate\\source\\d6\\FieldInstance',
'provider' => [
0 => 'field',
1 => 'migrate_drupal',
2 => 'migrate',
4 => 'core',
],
]);
}