Code Duplication    Length = 12-13 lines in 3 locations

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

@@ 45-57 (lines=13) @@
42
    /**
43
     * @ticket 35495
44
     */
45
    public function test_should_accept_an_args_array_containing_taxonomy_for_first_parameter() 
46
    {
47
        register_taxonomy('wptests_tax', 'post');
48
        $term = self::factory()->term->create(array( 'taxonomy' => 'wptests_tax' ));
49
50
        $found = get_terms(
51
            array(
52
            'taxonomy' => 'wptests_tax',
53
            'hide_empty' => false,
54
            'fields' => 'ids',
55
            'update_term_meta_cache' => false,
56
            ) 
57
        );
58
59
        $this->assertEqualSets(array( $term ), $found);
60
    }
@@ 615-626 (lines=12) @@
612
        $this->assertEqualSets(array( $c2, $c3 ), $result);
613
    }
614
615
    public function test_get_terms_by_slug() 
616
    {
617
        $t1 = self::factory()->tag->create(array( 'slug' => 'foo' ));
618
        $t2 = self::factory()->tag->create(array( 'slug' => 'bar' ));
619
620
        $found = get_terms(
621
            'post_tag', array(
622
            'hide_empty' => false,
623
            'fields' => 'ids',
624
            'slug' => 'foo',
625
            ) 
626
        );
627
628
        $this->assertEquals(array( $t1 ), $found);
629
    }
@@ 654-665 (lines=12) @@
651
    /**
652
     * @ticket 30611
653
     */
654
    public function test_get_terms_by_name() 
655
    {
656
        $t1 = self::factory()->tag->create(array( 'name' => 'Foo' ));
657
        $t2 = self::factory()->tag->create(array( 'name' => 'Bar' ));
658
659
        $found = get_terms(
660
            'post_tag', array(
661
            'hide_empty' => false,
662
            'fields' => 'ids',
663
            'name' => 'Foo',
664
            ) 
665
        );
666
667
        $this->assertEquals(array( $t1 ), $found);
668
    }