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
AssertReviewCreationSuccessMessage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Review\Test\Constraint
;
8
9
use Magento\Catalog\Test\Page\Product\CatalogProductView;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertReviewCreationSuccessMessage
extends
AbstractConstraint
16
{
20
const
SUCCESS_MESSAGE
=
'You submitted your review for moderation.'
;
21
28
public
function
processAssert
(CatalogProductView $catalogProductView)
29
{
30
$actualMessage = $catalogProductView->getMessagesBlock()->getSuccessMessage();
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::SUCCESS_MESSAGE,
33
$actualMessage,
34
'Wrong success message is displayed.'
35
.
"\nExpected: "
. self::SUCCESS_MESSAGE
36
.
"\nActual: "
. $actualMessage
37
);
38
}
39
45
public
function
toString
()
46
{
47
return
'Review success create message is present.'
;
48
}
49
}
Magento\Review\Test\Constraint\AssertReviewCreationSuccessMessage\processAssert
processAssert(CatalogProductView $catalogProductView)
Definition:
AssertReviewCreationSuccessMessage.php:28
Magento\Review\Test\Constraint\AssertReviewCreationSuccessMessage\toString
toString()
Definition:
AssertReviewCreationSuccessMessage.php:45
Magento\Review\Test\Constraint\AssertReviewCreationSuccessMessage
Definition:
AssertReviewCreationSuccessMessage.php:15
Magento\Review\Test\Constraint
Definition:
AssertProductRatingInGrid.php:7
Magento\Review\Test\Constraint\AssertReviewCreationSuccessMessage\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertReviewCreationSuccessMessage.php:20