function FieldDiscoveryTest::getCoreVersionData
Same name in other branches
- 8.9.x core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getCoreVersionData()
- 10 core/modules/migrate_drupal/tests/src/Unit/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Unit\FieldDiscoveryTest::getCoreVersionData()
- 11.x 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,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.