9 use Magento\Sitemap\Test\Fixture\Sitemap;
10 use Magento\Sitemap\Test\Page\Adminhtml\SitemapIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
27 public function processAssert(SitemapIndex $sitemapPage, Sitemap $sitemap)
29 $actualMessage = $sitemapPage->getMessagesBlock()->getErrorMessage();
30 \PHPUnit\Framework\Assert::assertEquals(
31 sprintf(self::FAIL_FOLDER_MESSAGE, $sitemap->getSitemapPath()),
33 'Wrong error message is displayed.' 34 .
"\nExpected: " . self::FAIL_FOLDER_MESSAGE
35 .
"\nActual: " . $actualMessage
46 return 'Error message after creating sitemap with wrong folder is present.';
processAssert(SitemapIndex $sitemapPage, Sitemap $sitemap)
const FAIL_FOLDER_MESSAGE