1 comment.test CommentHelperCase::setCommentSettings($name, $value, $message)

Sets a comment config for the post content type.

Parameters

string $name: Name of setting.

string $value: Value of setting.

string $message: Status message to display.

File

core/modules/comment/tests/comment.test, line 284
Tests for the Comment module.

Class

CommentHelperCase

Code

function setCommentSettings($name, $value, $message) {
  $node_type = node_type_get_type('post');
  $node_type->settings[$name] = $value;
  node_type_save($node_type);
  // Display status message.
  $this->pass($message);
}