protected function PostRequestIndexingTrait::triggerPostRequestIndexing in Search API 8
Triggers any post-request indexing operations that were registered.
4 calls to PostRequestIndexingTrait::triggerPostRequestIndexing()
- CliTest::testItemTracking in tests/
src/ Kernel/ System/ CliTest.php - Tests tracking of items when saving an index through the CLI.
- IntegrationTest::checkContentEntityTracking in tests/
src/ Functional/ IntegrationTest.php - Tests whether the tracking information is properly maintained.
- LanguageWithFallbackTest::testIndexing in tests/
src/ Kernel/ Processor/ LanguageWithFallbackTest.php - Tests indexing.
- ViewsCacheInvalidationTest::doAssertCached in tests/
src/ Kernel/ Views/ ViewsCacheInvalidationTest.php - Checks the cache status of the view for the given user.
File
- tests/
src/ Kernel/ PostRequestIndexingTrait.php, line 13
Class
- PostRequestIndexingTrait
- Provides a helper method for triggering post-request indexing.
Namespace
Drupal\Tests\search_api\KernelCode
protected function triggerPostRequestIndexing() {
\Drupal::getContainer()
->get('search_api.post_request_indexing')
->destruct();
}