Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / src / Tests / CommentPagerTest.php
index 9c4897840363d01528549f2ca1f8aabf8b8f8d00..48326bca6e459ba63fbec15d956a51f34afe58ef 100644 (file)
@@ -266,12 +266,18 @@ class CommentPagerTest extends CommentTestBase {
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_FLAT, 'Comment paging changed.');
 
     $expected_pages = [
-      1 => 5, // Page of comment 5
-      2 => 4, // Page of comment 4
-      3 => 3, // Page of comment 3
-      4 => 2, // Page of comment 2
-      5 => 1, // Page of comment 1
-      6 => 0, // Page of comment 0
+      // Page of comment 5
+      1 => 5,
+      // Page of comment 4
+      2 => 4,
+      // Page of comment 3
+      3 => 3,
+      // Page of comment 2
+      4 => 2,
+      // Page of comment 1
+      5 => 1,
+      // Page of comment 0
+      6 => 0,
     ];
 
     $node = Node::load($node->id());
@@ -284,12 +290,18 @@ class CommentPagerTest extends CommentTestBase {
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_THREADED, 'Switched to threaded mode.');
 
     $expected_pages = [
-      1 => 5, // Page of comment 5
-      2 => 1, // Page of comment 4
-      3 => 1, // Page of comment 4
-      4 => 1, // Page of comment 4
-      5 => 1, // Page of comment 4
-      6 => 0, // Page of comment 0
+      // Page of comment 5
+      1 => 5,
+      // Page of comment 4
+      2 => 1,
+      // Page of comment 4
+      3 => 1,
+      // Page of comment 4
+      4 => 1,
+      // Page of comment 4
+      5 => 1,
+      // Page of comment 0
+      6 => 0,
     ];
 
     \Drupal::entityManager()->getStorage('node')->resetCache([$node->id()]);