Skip to content

Commit

Permalink
Issue #3153791 by Wim Leers, quietone: Add comment field for 'et' con…
Browse files Browse the repository at this point in the history
…tent type to d7 fixture

(cherry picked from commit e9fd4d48fdf5e1de8b7b8875cb40d285d882e326)
  • Loading branch information
catch committed Jul 14, 2020
1 parent 5f581e4 commit 6ccbf4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function testMigration() {
$this->assertEntity('book', 'comment_node_book', 2, 1, 50, 0, TRUE, 1);
$this->assertEntity('forum', 'comment_forum', 2, 1, 50, 0, TRUE, 1);
$this->assertEntity('test_content_type', 'comment_node_test_content_type', 2, 1, 30, 0, TRUE, 1);
$this->assertEntity('et', 'comment_node_et', 2, 1, 50, 0, FALSE, 1);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function testMigration() {
$this->assertEntity('comment_node_book');
$this->assertEntity('comment_forum');
$this->assertEntity('comment_node_test_content_type');
$this->assertEntity('comment_node_et');
}

}
9 changes: 9 additions & 0 deletions modules/migrate_drupal/tests/fixtures/drupal7.php
Original file line number Diff line number Diff line change
Expand Up @@ -5282,6 +5282,15 @@
'data' => 'a:7:{s:5:"label";s:4:"tree";s:6:"widget";a:5:{s:6:"weight";s:2:"-3";s:4:"type";s:14:"text_textfield";s:6:"module";s:4:"text";s:6:"active";i:1;s:8:"settings";a:1:{s:4:"size";s:2:"60";}}s:8:"settings";a:3:{s:15:"text_processing";s:1:"0";s:18:"user_register_form";b:0;s:23:"entity_translation_sync";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:1;}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}',
'deleted' => '0',
))
->values(array(
'id' => '83',
'field_id' => '54',
'field_name' => 'comment_body',
'entity_type' => 'comment',
'bundle' => 'comment_node_et',
'data' => 'a:6:{s:5:"label";s:7:"Comment";s:8:"settings";a:2:{s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:8:"required";b:1;s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:6:"weight";i:0;s:8:"settings";a:0:{}s:6:"module";s:4:"text";}}s:6:"widget";a:4:{s:4:"type";s:13:"text_textarea";s:8:"settings";a:1:{s:4:"rows";i:5;}s:6:"weight";i:0;s:6:"module";s:4:"text";}s:11:"description";s:0:"";}',
'deleted' => '0',
))
->execute();
$connection->schema()->createTable('field_data_body', array(
'fields' => array(
Expand Down

0 comments on commit 6ccbf4a

Please sign in to comment.