Code Duplication    Length = 13-13 lines in 2 locations

tests/phpunit/tests/comment.php 2 locations

@@ 797-809 (lines=13) @@
794
        $this->assertSame('Bar', $comment->comment_author);
795
    }
796
797
    public function test_trash_should_invalidate_comment_cache() 
798
    {
799
        global $wpdb;
800
801
        $c = self::factory()->comment->create();
802
803
        $comment = get_comment($c);
804
805
        wp_trash_comment($c);
806
807
        $comment = get_comment($c);
808
809
        $this->assertSame('trash', $comment->comment_approved);
810
    }
811
812
    public function test_untrash_should_invalidate_comment_cache() 
@@ 829-841 (lines=13) @@
826
        $this->assertSame('1', $comment->comment_approved);
827
    }
828
829
    public function test_spam_should_invalidate_comment_cache() 
830
    {
831
        global $wpdb;
832
833
        $c = self::factory()->comment->create();
834
835
        $comment = get_comment($c);
836
837
        wp_spam_comment($c);
838
839
        $comment = get_comment($c);
840
841
        $this->assertSame('spam', $comment->comment_approved);
842
    }
843
844
    public function test_unspam_should_invalidate_comment_cache()