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
Catalog
Test
Constraint
AssertProductAttributeSuccessDeleteMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\Constraint
;
8
9
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductAttributeIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertProductAttributeSuccessDeleteMessage
extends
AbstractConstraint
17
{
18
const
SUCCESS_MESSAGE
=
'You deleted the product attribute.'
;
19
26
public
function
processAssert
(CatalogProductAttributeIndex $attributeIndex)
27
{
28
$actualMessage = $attributeIndex->getMessagesBlock()->getSuccessMessage();
29
\PHPUnit\Framework\Assert::assertEquals(
30
self::SUCCESS_MESSAGE,
31
$actualMessage,
32
'Wrong success message is displayed.'
33
.
"\nExpected: "
. self::SUCCESS_MESSAGE
34
.
"\nActual: "
. $actualMessage
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
'Attribute success delete message is present.'
;
46
}
47
}
Magento\Catalog\Test\Constraint\AssertProductAttributeSuccessDeleteMessage\toString
toString()
Definition:
AssertProductAttributeSuccessDeleteMessage.php:43
Magento\Catalog\Test\Constraint\AssertProductAttributeSuccessDeleteMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertProductAttributeSuccessDeleteMessage.php:18
Magento\Catalog\Test\Constraint
Definition:
AssertAbsenceDeleteAttributeButton.php:7
Magento\Catalog\Test\Constraint\AssertProductAttributeSuccessDeleteMessage
Definition:
AssertProductAttributeSuccessDeleteMessage.php:16
Magento\Catalog\Test\Constraint\AssertProductAttributeSuccessDeleteMessage\processAssert
processAssert(CatalogProductAttributeIndex $attributeIndex)
Definition:
AssertProductAttributeSuccessDeleteMessage.php:26