comparison core/modules/comment/tests/src/Kernel/CommentValidationTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
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.