MigrateVocabularyEntityFormDisplayTest.php in Zircon Profile 8.0
File
core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyEntityFormDisplayTest.php
View source
<?php
namespace Drupal\taxonomy\Tests\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\migrate\Entity\Migration;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
class MigrateVocabularyEntityFormDisplayTest extends MigrateDrupal6TestBase {
public static $modules = [
'taxonomy',
];
protected function setUp() {
parent::setUp();
$this
->migrateTaxonomy();
}
public function testVocabularyEntityFormDisplay() {
$component = EntityFormDisplay::load('node.page.default')
->getComponent('tags');
$this
->assertIdentical('options_select', $component['type']);
$this
->assertIdentical(20, $component['weight']);
$this
->assertIdentical(array(
'node',
'article',
'default',
'tags',
), Migration::load('d6_vocabulary_entity_form_display')
->getIdMap()
->lookupDestinationID(array(
4,
'article',
)));
}
}