diff --git a/src/Form/IndexReindexConfirmForm.php b/src/Form/IndexReindexConfirmForm.php index 24b37dfd..9d6ac006 100644 --- a/src/Form/IndexReindexConfirmForm.php +++ b/src/Form/IndexReindexConfirmForm.php @@ -71,11 +71,11 @@ public function submitForm(array &$form, FormStateInterface $form_state) { try { $index->reindex(); - $this->messenger->addStatus($this->t('The search index %name was successfully reindexed.', ['%name' => $index->label()])); + $this->messenger->addStatus($this->t('The search index %name was successfully queued for reindexing.', ['%name' => $index->label()])); } catch (SearchApiException $e) { - $this->messenger->addError($this->t('Failed to reindex items for the search index %name.', ['%name' => $index->label()])); - $message = '%type while trying to reindex items on index %name: @message in %function (line %line of %file)'; + $this->messenger->addError($this->t('Failed to queue items for reindexing on search index %name.', ['%name' => $index->label()])); + $message = '%type while trying to queue items for reindexing on index %name: @message in %function (line %line of %file)'; $variables = [ '%name' => $index->label(), ]; diff --git a/tests/src/Functional/IntegrationTest.php b/tests/src/Functional/IntegrationTest.php index 344d6035..0bfb37a8 100644 --- a/tests/src/Functional/IntegrationTest.php +++ b/tests/src/Functional/IntegrationTest.php @@ -1503,7 +1503,7 @@ protected function checkIndexActions() { $this->assertEquals($manipulated_items_count + 1, $this->countItemsOnServer()); $this->drupalPostForm($this->getIndexPath('reindex'), [], 'Confirm'); - $assert_session->pageTextContains("The search index $label was successfully reindexed."); + $assert_session->pageTextContains("The search index $label was successfully queued for reindexing."); $this->assertEquals(0, $tracker->getIndexedItemsCount()); $this->assertEquals($manipulated_items_count, $tracker->getTotalItemsCount()); $this->assertEquals($manipulated_items_count + 1, $this->countItemsOnServer());