Code Duplication    Length = 11-16 lines in 2 locations

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

@@ 1021-1036 (lines=16) @@
1018
        $this->assertQueryFixture($query, $fixture, null, true, false, false);
1019
    }
1020
1021
    public function testFindSingle()
1022
    {
1023
        $repository = $this->getRepository();
1024
        $searchService = $repository->getSearchService();
1025
1026
        $content = $searchService->findSingle(
1027
            new Criterion\ContentId(
1028
                [4]
1029
            )
1030
        );
1031
1032
        $this->assertEquals(
1033
            4,
1034
            $content->id
1035
        );
1036
    }
1037
1038
    public function testFindNoPerformCount()
1039
    {
@@ 1489-1499 (lines=11) @@
1486
    /**
1487
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1488
     */
1489
    public function testFindSingleFailMultiple()
1490
    {
1491
        $repository = $this->getRepository();
1492
        $searchService = $repository->getSearchService();
1493
1494
        $searchService->findSingle(
1495
            new Criterion\ContentId(
1496
                [4, 10]
1497
            )
1498
        );
1499
    }
1500
1501
    /**
1502
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException