Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/tests/src/Kernel/CommentValidationTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
133 $this->assertLengthViolation($comment, 'thread', 255); | 133 $this->assertLengthViolation($comment, 'thread', 255); |
134 | 134 |
135 $comment->set('thread', NULL); | 135 $comment->set('thread', NULL); |
136 | 136 |
137 // Force anonymous users to enter contact details. | 137 // Force anonymous users to enter contact details. |
138 $field->setSetting('anonymous', COMMENT_ANONYMOUS_MUST_CONTACT); | 138 $field->setSetting('anonymous', CommentInterface::ANONYMOUS_MUST_CONTACT); |
139 $field->save(); | 139 $field->save(); |
140 // Reset the node entity. | 140 // Reset the node entity. |
141 \Drupal::entityManager()->getStorage('node')->resetCache([$node->id()]); | 141 \Drupal::entityManager()->getStorage('node')->resetCache([$node->id()]); |
142 $node = Node::load($node->id()); | 142 $node = Node::load($node->id()); |
143 // Create a new comment with the new field. | 143 // Create a new comment with the new field. |