$this->
assertSame($default_mode,
$entity->
getSetting('default_mode'
));
$this->
assertSame($per_page,
$entity->
getSetting('per_page'
));
$this->
assertSame($anonymous,
$entity->
getSetting('anonymous'
));
$this->
assertSame($form_location,
$entity->
getSetting('form_location'
));
$this->
assertSame($preview,
$entity->
getSetting('preview'
));
} /**
* Tests the migrated field instance values.
*/
public function testMigration() { $this->
assertEntity('article', 'comment_node_article', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('company', 'comment_node_company', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('employee', 'comment_node_employee', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('event', 'comment_node_event', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('forum', 'comment_forum', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('page', 'comment_node_page', 0, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('sponsor', 'comment_node_sponsor', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('story', 'comment_node_story', 2, 0, 70, 1, FALSE, 0
);
$this->
assertEntity('test_event', 'comment_node_test_event', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('test_page', 'comment_node_test_page', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('test_planet', 'comment_node_test_planet', 2, 1, 50, 0, FALSE, 1
);
$this->
assertEntity('test_story', 'comment_node_test_story', 2, 1, 50, 0, FALSE, 1
);
}