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
Customer
Test
Constraint
AssertCustomerInfoSuccessSavedMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\CustomerAccountIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertCustomerInfoSuccessSavedMessage
extends
AbstractConstraint
16
{
17
/* tags */
18
const
SEVERITY
=
'low'
;
19
/* end tags */
20
21
const
SUCCESS_MESSAGE
=
'You saved the account information.'
;
22
29
public
function
processAssert
(CustomerAccountIndex $customerAccountIndex)
30
{
31
$successMessage = $customerAccountIndex->getMessages()->getSuccessMessage();
32
\PHPUnit\Framework\Assert::assertEquals(
33
self::SUCCESS_MESSAGE,
34
$successMessage,
35
'Wrong success message is displayed.'
36
.
"\nExpected: "
. self::SUCCESS_MESSAGE
37
.
"\nActual: "
. $successMessage
38
);
39
}
40
46
public
function
toString
()
47
{
48
return
'Success customer info save message on customer account index page is correct.'
;
49
}
50
}
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerInfoSuccessSavedMessage\processAssert
processAssert(CustomerAccountIndex $customerAccountIndex)
Definition:
AssertCustomerInfoSuccessSavedMessage.php:29
Magento\Customer\Test\Constraint\AssertCustomerInfoSuccessSavedMessage\toString
toString()
Definition:
AssertCustomerInfoSuccessSavedMessage.php:46
Magento\Customer\Test\Constraint\AssertCustomerInfoSuccessSavedMessage
Definition:
AssertCustomerInfoSuccessSavedMessage.php:15
Magento\Customer\Test\Constraint\AssertCustomerInfoSuccessSavedMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertCustomerInfoSuccessSavedMessage.php:21
Magento\Customer\Test\Constraint\AssertCustomerInfoSuccessSavedMessage\SEVERITY
const SEVERITY
Definition:
AssertCustomerInfoSuccessSavedMessage.php:18