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
AssertTopDestinationsInSelect.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
AssertTopDestinationsInSelect
extends
AbstractConstraint
16
{
24
public
function
processAssert
(
CheckoutCart
$checkoutCart, array $topDestinations)
25
{
26
$checkoutCart->open();
27
\PHPUnit\Framework\Assert::assertEquals(
28
$topDestinations,
29
$checkoutCart->getShippingBlock()->getTopCountries(),
30
'Top countries are different from the ones selected as Top Destinations.'
31
);
32
}
33
39
public
function
toString
()
40
{
41
return
'Countries selected as Top Destinations are at the top in select.'
;
42
}
43
}
Magento\Checkout\Test\Constraint\AssertTopDestinationsInSelect\toString
toString()
Definition:
AssertTopDestinationsInSelect.php:39
Magento\Checkout\Model\Cart
Definition:
CartInterface.php:6
Magento\Checkout\Test\Constraint
Definition:
AssertAddedProductToCartSuccessMessage.php:7
Magento\Checkout\Test\Constraint\AssertTopDestinationsInSelect
Definition:
AssertTopDestinationsInSelect.php:15
Magento\Checkout\Test\Constraint\AssertTopDestinationsInSelect\processAssert
processAssert(CheckoutCart $checkoutCart, array $topDestinations)
Definition:
AssertTopDestinationsInSelect.php:24