You are here

function CommentGoodnessSettingsFormTestCase::testCommentForm in Comment goodness 7

Test if the comment settings form got altered correctly.

File

tests/comment_goodness.test, line 29

Class

CommentGoodnessSettingsFormTestCase
Test comment settings form.

Code

function testCommentForm() {
  $this
    ->drupalGet('/admin/structure/types/manage/page');
  $this
    ->assertField('comment_created_date_format', t('Comment created date field displayed.'));
  $this
    ->assertField('comment_changed_date_format', t('Comment changed date field displayed.'));
  $this
    ->assertField('comment_default_sorting', t('Sort order field displayed.'));
  $this
    ->assertField('comment_form_placement', t('Comment form placement field displayed.'));
  $this
    ->assertField('comment_section_label', t('Comment section label field displayed.'));
  $this
    ->assertField('comment_form_label', t('Comment form label field displayed.'));
  $this
    ->assertField('comment_expose_fields', t('Expose comment properties as pseudo-fields field displayed.'));
}