Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 1849-1860 (lines=12) @@
1846
        $this->assertEqualSets($expected, $found);
1847
    }
1848
1849
    public function test_hierarchical_false_with_parent() 
1850
    {
1851
        $initial_terms = $this->create_hierarchical_terms();
1852
1853
        // Case where hierarchical is false
1854
        $terms = get_terms(
1855
            'category', array(
1856
            'hierarchical' => false,
1857
            'parent' => $initial_terms['one_term']['term_id']
1858
            ) 
1859
        );
1860
1861
        // Verify that there are no children
1862
        $this->assertEquals(0, count($terms));
1863
    }
@@ 1915-1926 (lines=12) @@
1912
        $this->assertEqualSets($expected, $actual);
1913
    }
1914
1915
    public function test_hierarchical_false_with_child_of_should_not_return_grandchildren() 
1916
    {
1917
        $initial_terms = $this->create_hierarchical_terms();
1918
1919
        // Case where hierarchical is false
1920
        $terms = get_terms(
1921
            'category', array(
1922
            'hierarchical' => false,
1923
            'child_of' => $initial_terms['one_term']['term_id']
1924
            ) 
1925
        );
1926
1927
        // Verify that there are no children
1928
        $this->assertEquals(0, count($terms));
1929
    }