|
@@ 936-953 (lines=18) @@
|
| 933 |
|
/** |
| 934 |
|
* @expectedException \RuntimeException |
| 935 |
|
*/ |
| 936 |
|
public function testFindNoPerformCountException() |
| 937 |
|
{ |
| 938 |
|
if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
| 939 |
|
$this->markTestSkipped('Only applicable to Legacy/DB based search'); |
| 940 |
|
} |
| 941 |
|
|
| 942 |
|
$repository = $this->getRepository(); |
| 943 |
|
$searchService = $repository->getSearchService(); |
| 944 |
|
|
| 945 |
|
$query = new Query(); |
| 946 |
|
$query->performCount = false; |
| 947 |
|
$query->limit = 0; |
| 948 |
|
$query->query = new Criterion\ContentTypeId( |
| 949 |
|
array(4) |
| 950 |
|
); |
| 951 |
|
|
| 952 |
|
$searchService->findContent($query); |
| 953 |
|
} |
| 954 |
|
|
| 955 |
|
public function testFindLocationsNoPerformCount() |
| 956 |
|
{ |
|
@@ 984-1001 (lines=18) @@
|
| 981 |
|
/** |
| 982 |
|
* @expectedException \RuntimeException |
| 983 |
|
*/ |
| 984 |
|
public function testFindLocationsNoPerformCountException() |
| 985 |
|
{ |
| 986 |
|
if (ltrim(get_class($this->getSetupFactory()), '\\') !== 'eZ\Publish\API\Repository\Tests\SetupFactory\Legacy') { |
| 987 |
|
$this->markTestSkipped('Only applicable to Legacy/DB based search'); |
| 988 |
|
} |
| 989 |
|
|
| 990 |
|
$repository = $this->getRepository(); |
| 991 |
|
$searchService = $repository->getSearchService(); |
| 992 |
|
|
| 993 |
|
$query = new LocationQuery(); |
| 994 |
|
$query->performCount = false; |
| 995 |
|
$query->limit = 0; |
| 996 |
|
$query->query = new Criterion\ContentTypeId( |
| 997 |
|
array(4) |
| 998 |
|
); |
| 999 |
|
|
| 1000 |
|
$searchService->findLocations($query); |
| 1001 |
|
} |
| 1002 |
|
|
| 1003 |
|
/** |
| 1004 |
|
* Create test Content with ezcountry field having multiple countries selected. |