eZ\Publish\Core\Repository\Tests\Service\Integration\SearchBase::testFindSingleThrowsInvalidArgumentException PHP Method

testFindSingleThrowsInvalidArgumentException() public method

Test for the findSingle() method.
    public function testFindSingleThrowsInvalidArgumentException()
    {
        /* BEGIN: Use Case */
        $searchService = $this->repository->getSearchService();
        // Throws an exception because more than one result was returned for the given query
        $searchResult = $searchService->findSingle(new Criterion\ContentId(array(4, 10)), array('languages' => array('eng-US')));
        /* END: Use Case */
    }