/**
  * Assert that success message is displayed after search term save
  *
  * @param CatalogSearchIndex $indexPage
  * @return void
  */
 public function processAssert(CatalogSearchIndex $indexPage)
 {
     $actualMessage = $indexPage->getMessagesBlock()->getSuccessMessage();
     \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_MESSAGE, $actualMessage, 'Wrong success message is displayed.' . PHP_EOL . "Expected: " . self::SUCCESS_MESSAGE . PHP_EOL . "Actual: " . $actualMessage);
 }
 /**
  * Assert that success message is displayed after search terms were mass deleted.
  *
  * @param array $searchTerms
  * @param CatalogSearchIndex $indexPage
  * @return void
  */
 public function processAssert(array $searchTerms, CatalogSearchIndex $indexPage)
 {
     $actualMessage = $indexPage->getMessagesBlock()->getSuccessMessage();
     $expectedMessage = sprintf(self::SUCCESS_MESSAGE, count($searchTerms));
     \PHPUnit_Framework_Assert::assertEquals($expectedMessage, $actualMessage, 'Wrong success message is displayed.' . "\nExpected: " . $expectedMessage . "\nActual: " . $actualMessage);
 }
 /**
  * Assert that success message is displayed after search term deleted
  *
  * @param CatalogSearchIndex $indexPage
  * @return void
  */
 public function processAssert(CatalogSearchIndex $indexPage)
 {
     $actualMessage = $indexPage->getMessagesBlock()->getSuccessMessages();
     \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_DELETE_MESSAGE, $actualMessage, 'Wrong success message is displayed.');
 }