Code Duplication    Length = 11-16 lines in 2 locations

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

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