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
Bundle
Test
Constraint
AssertTierPriceOnBundleProductPage.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Bundle\Test\Constraint
;
8
9
use
Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage
;
10
use Magento\Catalog\Test\Page\Product\CatalogProductView;
11
use Magento\Mtf\Client\BrowserInterface;
12
use Magento\Mtf\Fixture\FixtureInterface;
13
17
class
AssertTierPriceOnBundleProductPage
extends
AssertProductTierPriceOnProductPage
18
{
19
/* tags */
20
const
SEVERITY
=
'low'
;
21
/* end tags */
22
28
protected
$tierBlock
=
'.prices.tier.items'
;
29
35
protected
$priceFormat
= 0;
36
45
public
function
processAssert
(
46
BrowserInterface $browser,
47
CatalogProductView $catalogProductView,
48
FixtureInterface
$product
49
) {
50
//Open product view page
51
$browser->open($_ENV[
'app_frontend_url'
] .
$product
->getUrlKey() .
'.html'
);
52
$viewBlock = $catalogProductView->getBundleViewBlock();
53
$viewBlock->clickCustomize();
54
55
//Process assertions
56
$this->
assertPrice
($product, $viewBlock);
57
}
58
}
Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage
Definition:
AssertProductTierPriceOnProductPage.php:18
Magento\Bundle\Test\Constraint\AssertTierPriceOnBundleProductPage\$tierBlock
$tierBlock
Definition:
AssertTierPriceOnBundleProductPage.php:28
Magento\Bundle\Test\Constraint
Definition:
AssertBundleInCategory.php:7
Magento\Bundle\Test\Constraint\AssertTierPriceOnBundleProductPage\$priceFormat
$priceFormat
Definition:
AssertTierPriceOnBundleProductPage.php:35
Magento\Bundle\Test\Constraint\AssertTierPriceOnBundleProductPage\SEVERITY
const SEVERITY
Definition:
AssertTierPriceOnBundleProductPage.php:20
Magento\Bundle\Test\Constraint\AssertTierPriceOnBundleProductPage
Definition:
AssertTierPriceOnBundleProductPage.php:17
Magento\Bundle\Test\Constraint\AssertTierPriceOnBundleProductPage\processAssert
processAssert(BrowserInterface $browser, CatalogProductView $catalogProductView, FixtureInterface $product)
Definition:
AssertTierPriceOnBundleProductPage.php:45
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage\assertPrice
assertPrice(FixtureInterface $product, View $productViewBlock)
Definition:
AssertProductTierPriceOnProductPage.php:73