Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertCurrencySymbolSuccessSaveMessage.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\CurrencySymbol\Test\Page\Adminhtml\SystemCurrencySymbolIndex;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 
16 class AssertCurrencySymbolSuccessSaveMessage extends AbstractConstraint
17 {
18  const SUCCESS_SAVE_MESSAGE = 'You applied the custom currency symbols.';
19 
26  public function processAssert(SystemCurrencySymbolIndex $currencySymbolIndex)
27  {
28  $actualMessage = $currencySymbolIndex->getMessagesBlock()->getSuccessMessage();
29  \PHPUnit\Framework\Assert::assertEquals(
30  self::SUCCESS_SAVE_MESSAGE,
31  $actualMessage,
32  'Wrong success message is displayed.'
33  );
34  }
35 
41  public function toString()
42  {
43  return 'Currency Symbol success save message is correct.';
44  }
45 }