Commit 50caae08 authored by catch's avatar catch

Issue #2914649 by masipila, dipakmdhrm, phenaproxima, maxocub: [D7] Vocabulary...

Issue #2914649 by masipila, dipakmdhrm, phenaproxima, maxocub: [D7] Vocabulary migration: vid incorrectly mapped from vocabulary name instead of machine_name
parent 7d63b2a2
......@@ -45383,7 +45383,7 @@
))
->values(array(
'vid' => '4',
'name' => 'vocabulary name much longer than thirty two characters',
'name' => 'vocabulary name clearly different than machine name and much longer than thirty two characters',
'machine_name' => 'vocabulary_name_much_longer_than_thirty_two_characters',
'description' => 'description of vocabulary name much longer than thirty two characters',
'hierarchy' => '1',
......@@ -6,11 +6,9 @@ source:
plugin: d7_taxonomy_vocabulary
process:
vid:
-
plugin: machine_name
source: name
-
plugin: make_unique_entity_field
source: machine_name
entity_type: taxonomy_vocabulary
field: vid
length: 32
......
......@@ -57,7 +57,7 @@ public function testTaxonomyVocabulary() {
$this->assertEntity('tags', 'Tags', 'Use tags to group articles on similar topics into categories.', VocabularyInterface::HIERARCHY_DISABLED, 0);
$this->assertEntity('forums', 'Sujet de discussion', 'Forum navigation vocabulary', VocabularyInterface::HIERARCHY_SINGLE, -10);
$this->assertEntity('test_vocabulary', 'Test Vocabulary', 'This is the vocabulary description', VocabularyInterface::HIERARCHY_SINGLE, 0);
$this->assertEntity('vocabulary_name_much_longer_than', 'vocabulary name much longer than thirty two characters', 'description of vocabulary name much longer than thirty two characters', VocabularyInterface::HIERARCHY_SINGLE, 0);
$this->assertEntity('vocabulary_name_much_longer_than', 'vocabulary name clearly different than machine name and much longer than thirty two characters', 'description of vocabulary name much longer than thirty two characters', VocabularyInterface::HIERARCHY_SINGLE, 0);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment