File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,6 @@ class Tests_Comment_Query extends WP_UnitTestCase {
2828 */
2929 private $ test_posts = array ();
3030
31- /**
32- * Test-specific comments created during individual tests that need cleanup.
33- *
34- * @since 6.9.0
35- * @var int[]
36- */
37- private $ test_comments = array ();
38-
3931 public static function wpSetUpBeforeClass ( WP_UnitTest_Factory $ factory ) {
4032 self ::$ post_id = $ factory ->post ->create ();
4133 }
@@ -5415,9 +5407,6 @@ protected function create_note_type_test_comments(): array {
54155407 )
54165408 );
54175409
5418- // Track for cleanup.
5419- $ this ->test_comments = array_merge ( $ this ->test_comments , $ comments );
5420-
54215410 return $ comments ;
54225411 }
54235412
@@ -5542,9 +5531,6 @@ public function test_get_comment_count_excludes_note_type() {
55425531 )
55435532 );
55445533
5545- // Track comments for cleanup.
5546- $ this ->test_comments = array_merge ( $ this ->test_comments , array ( $ c1 , $ c2 , $ c3 ) );
5547-
55485534 $ counts = get_comment_count ( $ post_id );
55495535
55505536 $ this ->assertSame ( 1 , $ counts ['approved ' ] );
You can’t perform that action at this time.
0 commit comments