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
AssertCustomerMassDeleteSuccessMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Test\Constraint
;
8
9
use Magento\Customer\Test\Page\Adminhtml\CustomerIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertCustomerMassDeleteSuccessMessage
extends
AbstractConstraint
17
{
21
const
SUCCESS_DELETE_MESSAGE
=
'A total of %d record(s) were deleted.'
;
22
30
public
function
processAssert
($customersQtyToDelete, CustomerIndex $customerIndexPage)
31
{
32
\PHPUnit\Framework\Assert::assertEquals(
33
sprintf(self::SUCCESS_DELETE_MESSAGE, $customersQtyToDelete),
34
$customerIndexPage->getMessagesBlock()->getSuccessMessage(),
35
'Wrong delete message is displayed.'
36
);
37
}
38
44
public
function
toString
()
45
{
46
return
'Mass delete customer message is displayed.'
;
47
}
48
}
Magento\Customer\Test\Constraint\AssertCustomerMassDeleteSuccessMessage
Definition:
AssertCustomerMassDeleteSuccessMessage.php:16
Magento\Customer\Test\Constraint
Definition:
AssertAdditionalAddressCreatedFrontend.php:7
Magento\Customer\Test\Constraint\AssertCustomerMassDeleteSuccessMessage\SUCCESS_DELETE_MESSAGE
const SUCCESS_DELETE_MESSAGE
Definition:
AssertCustomerMassDeleteSuccessMessage.php:21
Magento\Customer\Test\Constraint\AssertCustomerMassDeleteSuccessMessage\toString
toString()
Definition:
AssertCustomerMassDeleteSuccessMessage.php:44
Magento\Customer\Test\Constraint\AssertCustomerMassDeleteSuccessMessage\processAssert
processAssert($customersQtyToDelete, CustomerIndex $customerIndexPage)
Definition:
AssertCustomerMassDeleteSuccessMessage.php:30