CommentItemInterface::OPEN,
$this->commentType->
id() );
} /**
* Tests CSS classes on comments.
*/
public function testEntityChanges() { $this->
drupalLogin($this->webUser
);
// Create a new node.
$term =
$this->
createTerm($this->vocab,
['uid' =>
$this->webUser->
id()]);
// Add a comment.
/** @var \Drupal\comment\CommentInterface $comment */
$comment = Comment::
create([ 'entity_id' =>
$term->
id(),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_comment',
'uid' =>
$this->webUser->
id(),
'status' => CommentInterface::PUBLISHED,
'subject' =>
$this->
randomMachineName(),
'language' => LanguageInterface::LANGCODE_NOT_SPECIFIED,