protected function ViewsTest::regressionTest3136277 in Search API 8
Tests that query preprocessing works correctly for block views.
See also
https://www.drupal.org/node/3136277
1 call to ViewsTest::regressionTest3136277()
- ViewsTest::regressionTests in tests/
src/ Functional/ ViewsTest.php - Contains regression tests for previous, fixed bugs.
File
- tests/
src/ Functional/ ViewsTest.php, line 475
Class
- ViewsTest
- Tests the Views integration of the Search API.
Namespace
Drupal\Tests\search_api\FunctionalCode
protected function regressionTest3136277() {
$block = $this
->drupalPlaceBlock('views_block:search_api_test_block_view-block_1', [
'region' => 'content',
]);
/** @var \Drupal\search_api\IndexInterface $index */
$index = Index::load($this->indexId);
$processor = \Drupal::getContainer()
->get('search_api.plugin_helper')
->createProcessorPlugin($index, 'ignorecase');
$index
->addProcessor($processor)
->save();
$this
->drupalGet('<front>');
$this
->assertSession()
->pageTextContains('Search API Test Block View: Found 4 items');
$index
->removeProcessor('ignorecase')
->save();
$block
->delete();
}