/**
  * Assert that error message is displayed after creating sitemap with wrong path.
  *
  * @param SitemapIndex $sitemapIndex
  * @param Sitemap $sitemap
  * @return void
  */
 public function processAssert(SitemapIndex $sitemapIndex, Sitemap $sitemap)
 {
     \PHPUnit_Framework_Assert::assertEquals(sprintf(self::FAIL_PATH_MESSAGE, $sitemap->getSitemapFilename()), $sitemapIndex->getMessagesBlock()->getErrorMessages());
 }
 /**
  * Assert that success message is displayed after sitemap creation.
  *
  * @param SitemapIndex $sitemapIndex
  * @return void
  */
 public function processAssert(SitemapIndex $sitemapIndex)
 {
     \PHPUnit_Framework_Assert::assertEquals(self::SUCCESS_MESSAGE, $sitemapIndex->getMessagesBlock()->getSuccessMessages());
 }
 /**
  * Assert that success messages are displayed after sitemap generate.
  *
  * @param SitemapIndex $sitemapIndex
  * @param Sitemap $sitemap
  * @return void
  */
 public function processAssert(SitemapIndex $sitemapIndex, Sitemap $sitemap)
 {
     $actualMessages = $sitemapIndex->getMessagesBlock()->getSuccessMessages();
     \PHPUnit_Framework_Assert::assertTrue(in_array(self::SUCCESS_SAVE_MESSAGE, $actualMessages) && in_array(sprintf(self::SUCCESS_GENERATE_MESSAGE, $sitemap->getSitemapFilename()), $actualMessages), "The messages about the successful sitemap creation and generation are not present.");
 }