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
CurrencySymbol
Test
Constraint
AssertCurrencySymbolOnProductPageMainWebsite.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CurrencySymbol\Test\Constraint
;
8
9
use Magento\Mtf\Fixture\InjectableFixture;
10
use Magento\Catalog\Test\Page\Product\CatalogProductView;
11
use Magento\Mtf\Client\BrowserInterface;
12
use Magento\Mtf\Constraint\AbstractConstraint;
13
17
class
AssertCurrencySymbolOnProductPageMainWebsite
extends
AbstractConstraint
18
{
28
public
function
processAssert
(
29
InjectableFixture
$product
,
30
BrowserInterface $browser,
31
CatalogProductView $catalogProductView,
32
array
$currencySymbol
= []
33
) {
34
$browser->open($_ENV[
'app_frontend_url'
] .
$product
->getUrlKey() .
'.html'
);
35
$priceBlock = $catalogProductView->getViewBlock()->getPriceBlock();
36
$symbolOnPage = $priceBlock->getCurrencySymbol();
37
38
\PHPUnit\Framework\Assert::assertEquals(
39
$currencySymbol
[
'mainWebsite'
],
40
$symbolOnPage,
41
'Wrong Currency Symbol is displayed on Product page on the Main Website.'
42
);
43
}
44
50
public
function
toString
()
51
{
52
return
"Correct Currency Symbol displayed on Product page on the Main Website."
;
53
}
54
}
Magento\CurrencySymbol\Test\Constraint\AssertCurrencySymbolOnProductPageMainWebsite\toString
toString()
Definition:
AssertCurrencySymbolOnProductPageMainWebsite.php:50
Magento\CurrencySymbol\Test\Constraint\AssertCurrencySymbolOnProductPageMainWebsite
Definition:
AssertCurrencySymbolOnProductPageMainWebsite.php:17
$currencySymbol
$currencySymbol
Definition:
matrix.phtml:14
Magento\CurrencySymbol\Test\Constraint
Definition:
AssertCurrencySymbolOnCatalogPage.php:7
Magento\CurrencySymbol\Test\Constraint\AssertCurrencySymbolOnProductPageMainWebsite\processAssert
processAssert(InjectableFixture $product, BrowserInterface $browser, CatalogProductView $catalogProductView, array $currencySymbol=[])
Definition:
AssertCurrencySymbolOnProductPageMainWebsite.php:28
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22