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
CatalogSearch
Test
Constraint
AssertSearchTermSuccessMassDeleteMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogSearch\Test\Constraint
;
8
9
use Magento\CatalogSearch\Test\Page\Adminhtml\CatalogSearchIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertSearchTermSuccessMassDeleteMessage
extends
AbstractConstraint
16
{
20
const
SUCCESS_MESSAGE
=
'Total of %d record(s) were deleted.'
;
21
29
public
function
processAssert
(array $searchTerms, CatalogSearchIndex $indexPage)
30
{
31
$actualMessage = $indexPage->getMessagesBlock()->getSuccessMessage();
32
$expectedMessage = sprintf(self::SUCCESS_MESSAGE, count($searchTerms));
33
\PHPUnit\Framework\Assert::assertEquals(
34
$expectedMessage,
35
$actualMessage,
36
'Wrong success message is displayed.'
37
.
"\nExpected: "
. $expectedMessage
38
.
"\nActual: "
. $actualMessage
39
);
40
}
41
47
public
function
toString
()
48
{
49
return
'Search terms success delete message is present.'
;
50
}
51
}
Magento\CatalogSearch\Test\Constraint\AssertSearchTermSuccessMassDeleteMessage\processAssert
processAssert(array $searchTerms, CatalogSearchIndex $indexPage)
Definition:
AssertSearchTermSuccessMassDeleteMessage.php:29
Magento\CatalogSearch\Test\Constraint
Definition:
AssertAdvancedSearchAttributeIsAbsent.php:7
Magento\CatalogSearch\Test\Constraint\AssertSearchTermSuccessMassDeleteMessage
Definition:
AssertSearchTermSuccessMassDeleteMessage.php:15
Magento\CatalogSearch\Test\Constraint\AssertSearchTermSuccessMassDeleteMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertSearchTermSuccessMassDeleteMessage.php:20
Magento\CatalogSearch\Test\Constraint\AssertSearchTermSuccessMassDeleteMessage\toString
toString()
Definition:
AssertSearchTermSuccessMassDeleteMessage.php:47