Code Duplication    Length = 11-16 lines in 2 locations

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

@@ 1018-1033 (lines=16) @@
1015
        $this->assertQueryFixture($query, $fixture, null, true, false, false);
1016
    }
1017
1018
    public function testFindSingle()
1019
    {
1020
        $repository = $this->getRepository();
1021
        $searchService = $repository->getSearchService();
1022
1023
        $content = $searchService->findSingle(
1024
            new Criterion\ContentId(
1025
                array(4)
1026
            )
1027
        );
1028
1029
        $this->assertEquals(
1030
            4,
1031
            $content->id
1032
        );
1033
    }
1034
1035
    public function testFindNoPerformCount()
1036
    {
@@ 1351-1361 (lines=11) @@
1348
    /**
1349
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1350
     */
1351
    public function testFindSingleFailMultiple()
1352
    {
1353
        $repository = $this->getRepository();
1354
        $searchService = $repository->getSearchService();
1355
1356
        $searchService->findSingle(
1357
            new Criterion\ContentId(
1358
                array(4, 10)
1359
            )
1360
        );
1361
    }
1362
1363
    /**
1364
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException