protected function BackendTest::regressionTest2511860 in Search API 8
Tests searching for multiple two-letter words.
See also
https://www.drupal.org/node/2511860
1 call to BackendTest::regressionTest2511860()
- BackendTest::backendSpecificRegressionTests in modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php - Runs backend specific regression tests.
File
- modules/
search_api_db/ tests/ src/ Kernel/ BackendTest.php, line 599
Class
- BackendTest
- Tests index and search capabilities using the Database search backend.
Namespace
Drupal\Tests\search_api_db\KernelCode
protected function regressionTest2511860() {
$query = $this
->buildSearch();
$query
->addCondition('body', 'ab xy');
$results = $query
->execute();
$this
->assertEquals(5, $results
->getResultCount(), 'Fulltext filters on short words do not change the result.');
$query = $this
->buildSearch();
$query
->addCondition('body', 'ab ab');
$results = $query
->execute();
$this
->assertEquals(5, $results
->getResultCount(), 'Fulltext filters on duplicate short words do not change the result.');
}