You are here

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() {

  // Attach to the node with Comment Alter.
  $field_name = $this
    ->createField('text', 'text_textfield', array(
    'cardinality' => 1,
  ));

  // Now attach to the comment as well.
  $this
    ->attachFieldToComment($field_name);

  // Make sure the correct message is on the status report.
  $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,
  )));
}