Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -389,4 +389,5 @@ class CommentForm extends ContentEntityForm {
|
|||
}
|
||||
$form_state->setRedirectUrl($uri);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -214,4 +214,5 @@ class CommentAdminTest extends CommentTestBase {
|
|||
$this->drupalGet('comment/' . $anonymous_comment->id() . '/edit');
|
||||
$this->assertFieldById('edit-mail', $anonymous_comment->getAuthorEmail());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -104,7 +104,7 @@ class CommentNewIndicatorTest extends CommentTestBase {
|
|||
// value, the drupal.node-new-comments-link library would determine that the
|
||||
// node received a comment after the user last viewed it, and hence it would
|
||||
// perform an HTTP request to render the "new comments" node link.
|
||||
$this->assertIdentical(1, count($this->xpath('//*[@data-history-node-last-comment-timestamp="' . $comment->getChangedTime() . '"]')), 'data-history-node-last-comment-timestamp attribute is set to the correct value.');
|
||||
$this->assertIdentical(1, count($this->xpath('//*[@data-history-node-last-comment-timestamp="' . $comment->getChangedTime() . '"]')), 'data-history-node-last-comment-timestamp attribute is set to the correct value.');
|
||||
$this->assertIdentical(1, count($this->xpath('//*[@data-history-node-field-name="comment"]')), 'data-history-node-field-name attribute is set to the correct value.');
|
||||
// The data will be pre-seeded on this particular page in drupalSettings, to
|
||||
// avoid the need for the client to make a separate request to the server.
|
||||
|
|
|
@ -78,4 +78,5 @@ class CommentNodeAccessTest extends CommentTestBase {
|
|||
$this->assertText($reply_text);
|
||||
$this->assertText($reply_subject);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -31,4 +31,5 @@ class CommentNodeChangesTest extends CommentTestBase {
|
|||
$this->assertNull(FieldStorageConfig::load('node.comment'), 'Comment field storage deleted');
|
||||
$this->assertNull(FieldConfig::load('node.article.comment'), 'Comment field deleted');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -75,4 +75,5 @@ class CommentRssTest extends CommentTestBase {
|
|||
$this->drupalGet('rss.xml');
|
||||
$this->assertNoRaw($raw, 'Hidden comments is not a part of RSS feed.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -60,4 +60,5 @@ class CommentTitleTest extends CommentTestBase {
|
|||
// Tests that markup is created for comment with heading.
|
||||
$this->assertPattern('|<h3[^>]*><a[^>]*>' . $subject_text . '</a></h3>|', 'Comment title is rendered in h3 when title populated.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -116,4 +116,5 @@ class CommentFieldFilterTest extends CommentTestBase {
|
|||
$this->assertEqual(substr_count($text, $this->commentTitles[$langcode]), 2 * $count, 'Translation ' . $langcode . ' has count ' . $count . ' with ' . $message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@ class CommentDefaultFormatterCacheTagsTest extends EntityKernelTestBase {
|
|||
$renderer->renderRoot($build);
|
||||
$expected_cache_tags = [
|
||||
'entity_test_view',
|
||||
'entity_test:' . $commented_entity->id(),
|
||||
'entity_test:' . $commented_entity->id(),
|
||||
'config:core.entity_form_display.comment.comment.default',
|
||||
'config:field.field.comment.comment.comment_body',
|
||||
'config:field.field.entity_test.entity_test.comment',
|
||||
|
|
|
@ -56,7 +56,7 @@ class MigrateCommentTest extends MigrateDrupal6TestBase {
|
|||
$this->assertIdentical('The first comment.', $comment->getSubject());
|
||||
$this->assertIdentical('The first comment body.', $comment->comment_body->value);
|
||||
$this->assertIdentical('filtered_html', $comment->comment_body->format);
|
||||
$this->assertIdentical('0', $comment->pid->target_id);
|
||||
$this->assertIdentical(NULL, $comment->pid->target_id);
|
||||
$this->assertIdentical('1', $comment->getCommentedEntityId());
|
||||
$this->assertIdentical('node', $comment->getCommentedEntityTypeId());
|
||||
$this->assertIdentical('en', $comment->language()->getId());
|
||||
|
@ -68,6 +68,7 @@ class MigrateCommentTest extends MigrateDrupal6TestBase {
|
|||
|
||||
$comment = $comment_storage->load(3);
|
||||
$this->assertIdentical('The second comment.', $comment->subject->value);
|
||||
$this->assertIdentical('0', $comment->pid->target_id);
|
||||
$this->assertIdentical(NULL, $comment->pid->target_id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -30,4 +30,5 @@ class MigrateCommentVariableEntityDisplayTest extends MigrateCommentVariableDisp
|
|||
$this->assertIdentical(20, $component['weight']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -172,4 +172,5 @@ class CommentLinksTest extends CommentViewsKernelTestBase {
|
|||
$replyto_comment = $view->style_plugin->getField(0, 'replyto_comment');
|
||||
$this->assertFalse((string) $replyto_comment, "Didn't find the comment reply link as an anonymous user.");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -120,4 +120,5 @@ class CommentStatisticsUnitTest extends UnitTestCase {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue