public function MigrateVocabularyEntityFormDisplayTest::testVocabularyEntityFormDisplay in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyEntityFormDisplayTest.php \Drupal\taxonomy\Tests\Migrate\d6\MigrateVocabularyEntityFormDisplayTest::testVocabularyEntityFormDisplay()
Tests the Drupal 6 vocabulary-node type association to Drupal 8 migration.
File
- core/
modules/ taxonomy/ src/ Tests/ Migrate/ d6/ MigrateVocabularyEntityFormDisplayTest.php, line 37 - Contains \Drupal\taxonomy\Tests\Migrate\d6\MigrateVocabularyEntityFormDisplayTest.
Class
- MigrateVocabularyEntityFormDisplayTest
- Vocabulary entity form display migration.
Namespace
Drupal\taxonomy\Tests\Migrate\d6Code
public function testVocabularyEntityFormDisplay() {
// Test that the field exists.
$component = EntityFormDisplay::load('node.page.default')
->getComponent('tags');
$this
->assertIdentical('options_select', $component['type']);
$this
->assertIdentical(20, $component['weight']);
// Test the Id map.
$this
->assertIdentical(array(
'node',
'article',
'default',
'tags',
), Migration::load('d6_vocabulary_entity_form_display')
->getIdMap()
->lookupDestinationID(array(
4,
'article',
)));
}