protected function DependencyRemovalTest::reloadIndex in Search API 8
Reloads the index with the latest copy from storage.
8 calls to DependencyRemovalTest::reloadIndex()
- DependencyRemovalTest::testBackendDependency in tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php - Tests a backend with a dependency that gets removed.
- DependencyRemovalTest::testDatasourceDependency in tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php - Tests a datasource with a dependency that gets removed.
- DependencyRemovalTest::testDataTypeDependency in tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php - Tests whether dependencies of used data types are handled correctly.
- DependencyRemovalTest::testFieldDependency in tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php - Tests index with a field dependency that gets removed.
- DependencyRemovalTest::testModuleDependency in tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php - Tests whether module dependencies are handled correctly.
File
- tests/
src/ Kernel/ ConfigEntity/ DependencyRemovalTest.php, line 630
Class
- DependencyRemovalTest
- Tests what happens when an index's or a server's dependencies are removed.
Namespace
Drupal\Tests\search_api\Kernel\ConfigEntityCode
protected function reloadIndex() {
$storage = \Drupal::entityTypeManager()
->getStorage('search_api_index');
$storage
->resetCache();
$this->index = $storage
->load($this->index
->id());
}