Skip to content

Commit c0ec134

Browse files
author
Stanislav Idolov
committed
MAGETWO-59512: [GitHub] Products in wishlist show $0.00 price #6866
-- functional test
1 parent 199456a commit c0ec134

File tree

1 file changed

+3
-2
lines changed
  • dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Customer/Wishlist/Items

1 file changed

+3
-2
lines changed

dev/tests/functional/tests/app/Magento/Wishlist/Test/Block/Customer/Wishlist/Items/Product.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ public function hoverProductBlock()
167167
/**
168168
* Returns product price
169169
*
170+
* @param string $currency
170171
* @return string
171172
*/
172-
public function getPrice()
173+
public function getPrice($currency = '$')
173174
{
174175
$price = $this->_rootElement->find($this->price)->getText();
175-
return str_replace('$', '', $price);
176+
return str_replace($currency, '', $price);
176177
}
177178

178179
/**

0 commit comments

Comments
 (0)