public function FieldDiscoveryTest::getCoreVersionData in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getCoreVersionData()
- 9 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getCoreVersionData()
Provides data for testGetCoreVersion()
Return value
array The test data.
File
- core/
modules/ migrate_drupal/ tests/ src/ Unit/ FieldDiscoveryTest.php, line 243
Class
- FieldDiscoveryTest
- Tests the FieldDiscovery Class.
Namespace
Drupal\Tests\migrate_drupal\UnitCode
public function getCoreVersionData() {
return [
'Drupal 7' => [
'tags' => [
'Drupal 7',
],
'result' => '7',
],
'Drupal 6' => [
'tags' => [
'Drupal 6',
],
'result' => '6',
],
'D7 with others' => [
'tags' => [
'Drupal 7',
'Translation',
'Other Tag',
],
'result' => '7',
],
'Both (d7 has priority)' => [
'tags' => [
'Drupal 6',
'Drupal 7',
],
'result' => '7',
],
'Neither' => [
'tags' => [
'drupal 6',
'Drupal_6',
'This contains Drupal 7 but is not',
],
'result' => FALSE,
],
];
}