|
@@ 267-274 (lines=8) @@
|
| 264 |
|
* @depends testPrepareContent |
| 265 |
|
* @dataProvider providerForTestFulltextSearchSolr6 |
| 266 |
|
*/ |
| 267 |
|
public function testFulltextContentSearchSolr6(string $searchString, array $expectedKeys, array $idMap): void |
| 268 |
|
{ |
| 269 |
|
if (($solrVersion = getenv('SOLR_VERSION')) >= 7) { |
| 270 |
|
$this->markTestSkipped('This test is only relevant for Solr 6'); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
$this->doTestFulltextContentSearch($searchString, $expectedKeys, $idMap); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
/** |
| 277 |
|
* Test for the findContent() method on Solr >= 7. |
|
@@ 286-293 (lines=8) @@
|
| 283 |
|
* @depends testPrepareContent |
| 284 |
|
* @dataProvider providerForTestFulltextSearchSolr7 |
| 285 |
|
*/ |
| 286 |
|
public function testFulltextContentSearchSolr7(string $searchString, array $expectedKeys, array $idMap): void |
| 287 |
|
{ |
| 288 |
|
if (($solrVersion = getenv('SOLR_VERSION')) < 7) { |
| 289 |
|
$this->markTestSkipped('This test is only relevant for Solr >= 7'); |
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
$this->doTestFulltextContentSearch($searchString, $expectedKeys, $idMap); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
private function doTestFulltextContentSearch(string $searchString, array $expectedKeys, array $idMap): void |
| 296 |
|
{ |
|
@@ 335-342 (lines=8) @@
|
| 332 |
|
* @depends testPrepareContent |
| 333 |
|
* @dataProvider providerForTestFulltextSearchSolr7 |
| 334 |
|
*/ |
| 335 |
|
public function testFulltextLocationSearchSolr7($searchString, array $expectedKeys, array $idMap): void |
| 336 |
|
{ |
| 337 |
|
if (($solrVersion = getenv('SOLR_VERSION')) < 7) { |
| 338 |
|
$this->markTestSkipped('This test is only relevant for Solr >= 7'); |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
$this->doTestFulltextLocationSearch($searchString, $expectedKeys, $idMap); |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
private function doTestFulltextLocationSearch($searchString, array $expectedKeys, array $idMap): void |
| 345 |
|
{ |