Skip to content

Commit

Permalink
Revert "This might work"
Browse files Browse the repository at this point in the history
This reverts commit bde09d5.
  • Loading branch information
ockham committed Apr 20, 2022
1 parent 3c3eb99 commit 4b92fd6
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions phpunit/class-block-library-comment-template-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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',
Expand Down Expand Up @@ -224,19 +223,9 @@ function test_rendering_comment_template_nested() {
Hello world
</div>
</li>
<li id="comment-{$second_level_ids[1]}" class="comment even alt depth-3">
<div class="has-small-font-size wp-block-comment-author-name">
<a rel="external nofollow ugc" href="http://example.com/author-url/" target="_self" >
Test
</a>
</div>
<div class="wp-block-comment-content">
Hello world
</div>
</li>
</ol>
</li>
<li id="comment-{$first_level_ids[1]}" class="comment odd depth-2">
<li id="comment-{$first_level_ids[1]}" class="comment even depth-2">
<div class="has-small-font-size wp-block-comment-author-name">
<a rel="external nofollow ugc" href="http://example.com/author-url/" target="_self" >
Test
Expand Down

0 comments on commit 4b92fd6

Please sign in to comment.