Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Directory
Test
Constraint
AssertCurrencyRateSuccessSaveMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Directory\Test\Constraint
;
8
9
use Magento\Mtf\Constraint\AbstractConstraint;
10
use Magento\CurrencySymbol\Test\Page\Adminhtml\SystemCurrencyIndex;
11
15
class
AssertCurrencyRateSuccessSaveMessage
extends
AbstractConstraint
16
{
17
const
SUCCESS_MESSAGE
=
'All valid rates have been saved.'
;
18
25
public
function
processAssert
(SystemCurrencyIndex $currencyIndexPage)
26
{
27
$actualMessage = $currencyIndexPage->getMessagesBlock()->getSuccessMessage();
28
\PHPUnit\Framework\Assert::assertEquals(
29
self::SUCCESS_MESSAGE,
30
$actualMessage,
31
'Wrong success message is displayed.'
32
.
"\nExpected: "
. self::SUCCESS_MESSAGE
33
.
"\nActual: "
. $actualMessage
34
);
35
}
36
42
public
function
toString
()
43
{
44
return
'Currency rate success create message is present.'
;
45
}
46
}
Magento\Directory\Test\Constraint\AssertCurrencyRateSuccessSaveMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertCurrencyRateSuccessSaveMessage.php:17
Magento\Directory\Test\Constraint
Definition:
AssertCurrencyRateAppliedOnCatalogPage.php:7
Magento\Directory\Test\Constraint\AssertCurrencyRateSuccessSaveMessage\processAssert
processAssert(SystemCurrencyIndex $currencyIndexPage)
Definition:
AssertCurrencyRateSuccessSaveMessage.php:25
Magento\Directory\Test\Constraint\AssertCurrencyRateSuccessSaveMessage\toString
toString()
Definition:
AssertCurrencyRateSuccessSaveMessage.php:42
Magento\Directory\Test\Constraint\AssertCurrencyRateSuccessSaveMessage
Definition:
AssertCurrencyRateSuccessSaveMessage.php:15