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
Checkout
Test
Constraint
AssertCancelSuccessMessageInShoppingCart.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Test\Constraint
;
8
9
use Magento\Checkout\Test\Page\CheckoutCart;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertCancelSuccessMessageInShoppingCart
extends
AbstractConstraint
16
{
20
const
SUCCESS_MESSAGE
=
'Your purchase process has been cancelled.'
;
21
28
public
function
processAssert
(
CheckoutCart
$checkoutCart)
29
{
30
$actualMessage = $checkoutCart->getMessagesBlock()->getSuccessMessage();
31
\PHPUnit\Framework\Assert::assertEquals(
32
self::SUCCESS_MESSAGE,
33
$actualMessage,
34
'Success message is not present or has wrong text.'
35
);
36
}
37
43
public
function
toString
()
44
{
45
return
'Cancel success message is present or has a correct text.'
;
46
}
47
}
Magento\Checkout\Test\Constraint\AssertCancelSuccessMessageInShoppingCart
Definition:
AssertCancelSuccessMessageInShoppingCart.php:15
Magento\Checkout\Model\Cart
Definition:
CartInterface.php:6
Magento\Checkout\Test\Constraint
Definition:
AssertAddedProductToCartSuccessMessage.php:7
Magento\Checkout\Test\Constraint\AssertCancelSuccessMessageInShoppingCart\processAssert
processAssert(CheckoutCart $checkoutCart)
Definition:
AssertCancelSuccessMessageInShoppingCart.php:28
Magento\Checkout\Test\Constraint\AssertCancelSuccessMessageInShoppingCart\toString
toString()
Definition:
AssertCancelSuccessMessageInShoppingCart.php:43
Magento\Checkout\Test\Constraint\AssertCancelSuccessMessageInShoppingCart\SUCCESS_MESSAGE
const SUCCESS_MESSAGE
Definition:
AssertCancelSuccessMessageInShoppingCart.php:20