Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/API/Repository/Tests/Regression/EZP22958SearchSubtreePathstringFormatTest.php 2 locations

@@ 31-40 (lines=10) @@
28
     * @dataProvider searchContentQueryWithInvalidDataProvider
29
     * @expectedException \InvalidArgumentException
30
     */
31
    public function testSearchContentSubtreeShouldThrowException($pathString)
32
    {
33
        $query = new Query(
34
            array(
35
                'filter' => new Criterion\Subtree($pathString),
36
            )
37
        );
38
39
        $result = $this->getRepository()->getSearchService()->findContent($query);
40
    }
41
42
    /**
43
     * Tests that path string provided for subtree criterion is valid.
@@ 47-56 (lines=10) @@
44
     *
45
     * @dataProvider searchContentQueryProvider
46
     */
47
    public function testSearchContentSubtree($pathString)
48
    {
49
        $query = new Query(
50
            array(
51
                'filter' => new Criterion\Subtree($pathString),
52
            )
53
        );
54
55
        $result = $this->getRepository()->getSearchService()->findContent($query);
56
    }
57
58
    public function searchContentQueryProvider()
59
    {