Code Duplication    Length = 11-16 lines in 2 locations

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

@@ 1054-1069 (lines=16) @@
1051
        $this->assertQueryFixture($query, $fixture, null, true, false, false);
1052
    }
1053
1054
    public function testFindSingle()
1055
    {
1056
        $repository = $this->getRepository();
1057
        $searchService = $repository->getSearchService();
1058
1059
        $content = $searchService->findSingle(
1060
            new Criterion\ContentId(
1061
                [4]
1062
            )
1063
        );
1064
1065
        $this->assertEquals(
1066
            4,
1067
            $content->id
1068
        );
1069
    }
1070
1071
    public function testFindNoPerformCount()
1072
    {
@@ 1523-1533 (lines=11) @@
1520
    /**
1521
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1522
     */
1523
    public function testFindSingleFailMultiple()
1524
    {
1525
        $repository = $this->getRepository();
1526
        $searchService = $repository->getSearchService();
1527
1528
        $searchService->findSingle(
1529
            new Criterion\ContentId(
1530
                [4, 10]
1531
            )
1532
        );
1533
    }
1534
1535
    /**
1536
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException