Commit 7836638b authored by catch's avatar catch

Issue #3007436 by Jo Fitzgerald, andypost, mikelutz, heddn: Fix d7 comment migration

(cherry picked from commit da44172f)
parent f41ff929
......@@ -46,6 +46,17 @@ protected function assertEntity($id, $label) {
* Tests the migrated comment types.
*/
public function testMigration() {
$comment_fields = [
'comment' => 'Default comment setting',
'comment_default_mode' => 'Default display mode',
'comment_default_per_page' => 'Default comments per page',
'comment_anonymous' => 'Anonymous commenting',
'comment_subject_field' => 'Comment subject field',
'comment_preview' => 'Preview comment',
'comment_form_location' => 'Location of comment submission form',
];
$this->assertArraySubset($comment_fields, $this->migration->getSourcePlugin()->fields());
$this->assertEntity('comment_node_article', 'Article comment');
$this->assertEntity('comment_node_blog', 'Blog entry comment');
$this->assertEntity('comment_node_book', 'Book page comment');
......
......@@ -40,7 +40,7 @@ public function query() {
* {@inheritdoc}
*/
public function fields() {
return [
$fields = [
'type' => $this->t('Machine name of the node type.'),
'name' => $this->t('Human name of the node type.'),
'description' => $this->t('Description of the node type.'),
......
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