Code Duplication    Length = 8-13 lines in 3 locations

tests/phpunit/tests/term/getTerms.php 3 locations

@@ 355-362 (lines=8) @@
352
    /**
353
     * @ticket 13992
354
     */
355
    function test_get_terms_search() 
356
    {
357
        $term_id1 = self::factory()->tag->create(array( 'slug' => 'burrito' ));
358
        $term_id2 = self::factory()->tag->create(array( 'name' => 'Wilbur' ));
359
        $term_id3 = self::factory()->tag->create(array( 'name' => 'Foo' ));
360
361
        $terms = get_terms('post_tag', array( 'hide_empty' => false, 'search' => 'bur', 'fields' => 'ids' ));
362
        $this->assertEqualSets(array( $term_id1, $term_id2 ), $terms);
363
    }
364
365
    /**
@@ 634-646 (lines=13) @@
631
    /**
632
     * @ticket 23636
633
     */
634
    public function test_get_terms_by_multiple_slugs() 
635
    {
636
        $t1 = self::factory()->tag->create(array( 'slug' => 'foo' ));
637
        $t2 = self::factory()->tag->create(array( 'slug' => 'bar' ));
638
        $t3 = self::factory()->tag->create(array( 'slug' => 'barry' ));
639
640
        $found = get_terms(
641
            'post_tag', array(
642
            'hide_empty' => false,
643
            'fields' => 'ids',
644
            'slug' => array( 'foo', 'barry' )
645
            ) 
646
        );
647
648
        $this->assertEquals(array( $t1, $t3 ), $found);
649
    }
@@ 673-685 (lines=13) @@
670
    /**
671
     * @ticket 30611
672
     */
673
    public function test_get_terms_by_multiple_names() 
674
    {
675
        $t1 = self::factory()->tag->create(array( 'name' => 'Foo' ));
676
        $t2 = self::factory()->tag->create(array( 'name' => 'Bar' ));
677
        $t3 = self::factory()->tag->create(array( 'name' => 'Barry' ));
678
679
        $found = get_terms(
680
            'post_tag', array(
681
            'hide_empty' => false,
682
            'fields' => 'ids',
683
            'name' => array( 'Foo', 'Barry' )
684
            ) 
685
        );
686
687
        $this->assertEqualSets(array( $t3, $t1 ), $found);
688
    }