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
Review
Test
Constraint
AssertProductReviewBackendSuccessSaveMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Review\Test\Constraint
;
8
9
use Magento\Review\Test\Page\Adminhtml\ReviewIndex;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
16
class
AssertProductReviewBackendSuccessSaveMessage
extends
AbstractConstraint
17
{
21
const
SUCCESS_MESSAGE
=
'You saved the review.'
;
22
29
public
function
processAssert
(ReviewIndex $reviewIndex)
30
{
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::SUCCESS_MESSAGE,
33
$reviewIndex->getMessagesBlock()->getSuccessMessage(),
34
'Wrong success message is displayed.'
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
'Review success create message is present.'
;
46
}
47
}
Magento\Review\Test\Constraint\AssertProductReviewBackendSuccessSaveMessage\toString
toString()
Definition:
AssertProductReviewBackendSuccessSaveMessage.php:43
Magento\Review\Test\Constraint\AssertProductReviewBackendSuccessSaveMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertProductReviewBackendSuccessSaveMessage.php:21
Magento\Review\Test\Constraint
Definition:
AssertProductRatingInGrid.php:7
Magento\Review\Test\Constraint\AssertProductReviewBackendSuccessSaveMessage
Definition:
AssertProductReviewBackendSuccessSaveMessage.php:16
Magento\Review\Test\Constraint\AssertProductReviewBackendSuccessSaveMessage\processAssert
processAssert(ReviewIndex $reviewIndex)
Definition:
AssertProductReviewBackendSuccessSaveMessage.php:29