Code Duplication    Length = 11-16 lines in 2 locations

eZ/Publish/API/Repository/Tests/SearchServiceTest.php 2 locations

@@ 1002-1017 (lines=16) @@
999
        $this->assertQueryFixture($query, $fixture, $this->getContentInfoFixtureClosure($closure), true, true, false);
1000
    }
1001
1002
    public function testFindSingle()
1003
    {
1004
        $repository = $this->getRepository();
1005
        $searchService = $repository->getSearchService();
1006
1007
        $content = $searchService->findSingle(
1008
            new Criterion\ContentId(
1009
                array(4)
1010
            )
1011
        );
1012
1013
        $this->assertEquals(
1014
            4,
1015
            $content->id
1016
        );
1017
    }
1018
1019
    public function testFindNoPerformCount()
1020
    {
@@ 1335-1345 (lines=11) @@
1332
    /**
1333
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1334
     */
1335
    public function testFindSingleFailMultiple()
1336
    {
1337
        $repository = $this->getRepository();
1338
        $searchService = $repository->getSearchService();
1339
1340
        $searchService->findSingle(
1341
            new Criterion\ContentId(
1342
                array(4, 10)
1343
            )
1344
        );
1345
    }
1346
1347
    /**
1348
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException