diff --git a/phpunit/class-block-library-comment-template-test.php b/phpunit/class-block-library-comment-template-test.php index b14c0ee71ec23..8099ed1f08cf6 100644 --- a/phpunit/class-block-library-comment-template-test.php +++ b/phpunit/class-block-library-comment-template-test.php @@ -144,12 +144,11 @@ function test_rendering_comment_template() { } /** - * Test rendering nested comments, and for correct odd/even classes. + * Test rendering nested comments: * * └─ comment 1 * └─ comment 2 * └─ comment 4 - * └─ comment 5 * └─ comment 3 */ function test_rendering_comment_template_nested() { @@ -167,7 +166,7 @@ function test_rendering_comment_template_nested() { $second_level_ids = self::factory()->comment->create_post_comments( self::$custom_post->ID, - 2, + 1, array( 'comment_parent' => $first_level_ids[0], 'comment_author' => 'Test', @@ -224,19 +223,9 @@ function test_rendering_comment_template_nested() { Hello world -