Skip to content

Commit 8cf07a9

Browse files
eduard13andrewbess
authored andcommitted
Integration tests fixes
1 parent d11bfe1 commit 8cf07a9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Paypal/Model/Express/Checkout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public function start($returnUrl, $cancelUrl, $button = null)
505505
$solutionType = $this->_config->getMerchantCountry() == 'DE'
506506
? \Magento\Paypal\Model\Config::EC_SOLUTION_TYPE_MARK
507507
: $this->_config->getValue('solutionType');
508-
$totalAmount = round($this->_quote->getBaseGrandTotal(), 2);
508+
$totalAmount = round((float)$this->_quote->getBaseGrandTotal(), 2);
509509
$this->_getApi()->setAmount($totalAmount)
510510
->setCurrencyCode($this->_quote->getBaseCurrencyCode())
511511
->setInvNum($this->_quote->getReservedOrderId())

dev/tests/integration/testsuite/Magento/Framework/Filter/TemplateTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,21 @@ public function getFilterForDataProvider()
9090
2 name: Spot, lastname: , age: 7
9191
</li>
9292
93+
<li>
94+
3 name: Bill, lastname: , age: 25
95+
</li>
96+
9397
</ul>
9498
EXPECTED_RESULT;
9599

96100
$template2 = <<<TEMPLATE
97101
<ul>
98-
{{for item in order.all_visible_items}}
102+
{{for item in order.all_visible_items}}
99103
<li>
100104
index: {{var loop.index}} sku: {{var item.sku}}
101105
name: {{var item.name}} price: {{var item.price}} quantity: {{var item.ordered_qty}}
102106
</li>
103-
{{/for}}
107+
{{/for}}
104108
</ul>
105109
TEMPLATE;
106110

0 commit comments

Comments
 (0)