Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
142 $this->addDefaultCommentField('user', 'user', 'comment', CommentItemInterface::OPEN, 'comment_user'); | 142 $this->addDefaultCommentField('user', 'user', 'comment', CommentItemInterface::OPEN, 'comment_user'); |
143 $this->addDefaultCommentField('taxonomy_term', 'tags', 'comment', CommentItemInterface::OPEN, 'comment_term'); | 143 $this->addDefaultCommentField('taxonomy_term', 'tags', 'comment', CommentItemInterface::OPEN, 'comment_term'); |
144 | 144 |
145 // Create a user and a comment. | 145 // Create a user and a comment. |
146 $user = User::create(['name' => 'alice']); | 146 $user = User::create(['name' => 'alice']); |
147 $user->activate(); | |
147 $user->save(); | 148 $user->save(); |
148 $this->postComment($user, 'user body', 'user subject', TRUE); | 149 $this->postComment($user, 'user body', 'user subject', TRUE); |
149 | 150 |
150 // Create a term and a comment. | 151 // Create a term and a comment. |
151 $term = Term::create([ | 152 $term = Term::create([ |