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
                [4]
1026
            )
1027
        );
1028
1029
        $this->assertEquals(
1030
            4,
1031
            $content->id
1032
        );
1033
    }
1034
1035
    public function testFindNoPerformCount()
1036
    {
@@ 1349-1359 (lines=11) @@
1346
    /**
1347
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
1348
     */
1349
    public function testFindSingleFailMultiple()
1350
    {
1351
        $repository = $this->getRepository();
1352
        $searchService = $repository->getSearchService();
1353
1354
        $searchService->findSingle(
1355
            new Criterion\ContentId(
1356
                [4, 10]
1357
            )
1358
        );
1359
    }
1360
1361
    /**
1362
     * @expectedException \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException