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
AssertMassActionSuccessUpdateMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use
Magento\Customer\Test\Fixture\Customer
;
10
use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
11
use Magento\Mtf\Constraint\AbstractConstraint;
12
17
class
AssertMassActionSuccessUpdateMessage
extends
AbstractConstraint
18
{
19
/* tags */
20
const
SEVERITY
=
'low'
;
21
/* end tags */
22
26
const
UPDATE_MESSAGE
=
'A total of %d record(s) were updated.'
;
27
35
public
function
processAssert
(array
$customers
, CustomerIndex $pageCustomerIndex)
36
{
37
$actualMessage = $pageCustomerIndex->getMessagesBlock()->getSuccessMessage();
38
\PHPUnit\Framework\Assert::assertEquals(sprintf(self::UPDATE_MESSAGE, count(
$customers
)), $actualMessage);
39
}
40
46
public
function
toString
()
47
{
48
return
'Assert that update message is displayed.'
;
49
}
50
}
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertMassActionSuccessUpdateMessage\SEVERITY
const SEVERITY
Definition:
AssertMassActionSuccessUpdateMessage.php:20
Magento\Customer\Test\Constraint\AssertMassActionSuccessUpdateMessage
Definition:
AssertMassActionSuccessUpdateMessage.php:17
Magento\Customer\Test\Constraint\AssertMassActionSuccessUpdateMessage\UPDATE_MESSAGE
const UPDATE_MESSAGE
Definition:
AssertMassActionSuccessUpdateMessage.php:26
Magento\Customer\Test\Constraint\AssertMassActionSuccessUpdateMessage\processAssert
processAssert(array $customers, CustomerIndex $pageCustomerIndex)
Definition:
AssertMassActionSuccessUpdateMessage.php:35
$customers
$customers
Definition:
customer_with_addresses.php:6
Magento\Customer\Test\Constraint\AssertMassActionSuccessUpdateMessage\toString
toString()
Definition:
AssertMassActionSuccessUpdateMessage.php:46
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7