Code Duplication    Length = 14-14 lines in 2 locations

tests/OpenOrchestra/Tests/Functional/UserAdminBundle/Repository/UserRepositoryTest.php 2 locations

@@ 50-63 (lines=14) @@
47
    /**
48
     * @return array
49
     */
50
    public function providePaginateAndSearch()
51
    {
52
        $configurationAll = PaginateFinderConfiguration::generateFromVariable(array(), 0, 100, array());
53
        $configurationLimit = PaginateFinderConfiguration::generateFromVariable(array(), 0, 1, array());
54
        $configurationSearch = PaginateFinderConfiguration::generateFromVariable(array(), 0, 100, array(), array('search' => 'demo'));
55
        $configurationAllOrder = PaginateFinderConfiguration::generateFromVariable(array('username' => 'desc'), 0, 100, array());
56
57
        return array(
58
            'all' => array($configurationAll, 5),
59
            'limit' => array($configurationLimit, 1),
60
            'search' => array($configurationSearch, 2),
61
            'order' => array($configurationAllOrder, 5),
62
        );
63
    }
64
65
    /**
66
     * @param PaginateFinderConfiguration  $configuration
@@ 132-145 (lines=14) @@
129
    /**
130
     * @return array
131
     */
132
    public function provideCountWithFilter()
133
    {
134
        $configurationAll = PaginateFinderConfiguration::generateFromVariable(array(), 0, 100, array());
135
        $configurationLimit = PaginateFinderConfiguration::generateFromVariable(array(), 0, 1, array());
136
        $configurationSearch = PaginateFinderConfiguration::generateFromVariable(array(), 0, 100, array(), array('search' => 'demo'));
137
        $configurationAllOrder = PaginateFinderConfiguration::generateFromVariable(array('username' => 'desc'), 0, 100, array());
138
139
        return array(
140
            'all' => array($configurationAll, 5),
141
            'limit' => array($configurationLimit, 5),
142
            'search' => array($configurationSearch, 2),
143
            'order' => array($configurationAllOrder, 5),
144
        );
145
    }
146
147
    /**
148
     * @param PaginateFinderConfiguration $configuration