public function BackendTestBase::testBackend in Search API 8
Tests various indexing scenarios for the search backend.
Uses a single method to save time.
File
- tests/
src/ Kernel/ BackendTestBase.php, line 82
Class
- BackendTestBase
- Provides a base class for backend tests.
Namespace
Drupal\Tests\search_api\KernelCode
public function testBackend() {
$this
->insertExampleContent();
$this
->checkDefaultServer();
$this
->checkServerBackend();
$this
->checkDefaultIndex();
$this
->updateIndex();
$this
->searchNoResults();
$this
->indexItems($this->indexId);
$this
->searchSuccess();
if ($this
->getServer()
->supportsFeature('search_api_facets')) {
$this
->checkFacets();
}
$this
->checkSecondServer();
$this
->regressionTests();
$this
->clearIndex();
$this
->indexItems($this->indexId);
$this
->backendSpecificRegressionTests();
$this
->checkBackendSpecificFeatures();
$this
->clearIndex();
$this
->enableHtmlFilter();
$this
->indexItems($this->indexId);
$this
->disableHtmlFilter();
$this
->clearIndex();
$this
->searchNoResults();
$this
->regressionTests2();
$this
->checkIndexWithoutFields();
$this
->checkModuleUninstall();
}