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
Sales
Test
Constraint
AssertSalesPrintOrderGrandTotal.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Test\Constraint
;
8
9
use Magento\Sales\Test\Page\SalesGuestPrint;
10
use Magento\Mtf\Constraint\AbstractConstraint;
11
15
class
AssertSalesPrintOrderGrandTotal
extends
AbstractConstraint
16
{
24
public
function
processAssert
(SalesGuestPrint $salesGuestPrint, array
$prices
)
25
{
26
\PHPUnit\Framework\Assert::assertEquals(
27
number_format(array_sum(
$prices
), 2),
28
$salesGuestPrint->getViewBlock()->getItemBlock()->getGrandTotal(),
29
"Grand total was printed incorrectly."
30
);
31
}
32
38
public
function
toString
()
39
{
40
return
"Grand total was printed correctly."
;
41
}
42
}
Magento\Sales\Test\Constraint\AssertSalesPrintOrderGrandTotal\processAssert
processAssert(SalesGuestPrint $salesGuestPrint, array $prices)
Definition:
AssertSalesPrintOrderGrandTotal.php:24
Magento\Sales\Test\Constraint\AssertSalesPrintOrderGrandTotal
Definition:
AssertSalesPrintOrderGrandTotal.php:15
Magento\Sales\Test\Constraint
Definition:
AbstractAssertItems.php:7
Magento\Sales\Test\Constraint\AssertSalesPrintOrderGrandTotal\toString
toString()
Definition:
AssertSalesPrintOrderGrandTotal.php:38
$prices
$prices
Definition:
products_advanced.php:11