public function CommentAlterAdminTestCase::testStatusReport in Comment Alter 7
File
- ./comment_alter.test, line 336
- Functional tests for the Comment Alter module.
Class
- CommentAlterAdminTestCase
- Functional tests for the admin UIs provided by Comment Alter.
Code
public function testStatusReport() {
$field_name = $this
->createField('text', 'text_textfield', array(
'cardinality' => 1,
));
$this
->attachFieldToComment($field_name);
$this
->drupalGet('admin/reports/status');
$this
->assertRaw(t('The %field_name field exists on the comment and is alterable from comment on the parent node. Please remove it from the comment or disable altering it from comment!', array(
'%field_name' => $field_name,
)));
}