Skip to content

Commit 48d203b

Browse files
committed
MAGETWO-72512: Configurable product displays the price of "out of stock" configuration
1 parent ea2429e commit 48d203b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertConfigurableProductOutOfStockPage.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ protected function verifyPrice()
3232
$priceBlock = $this->productView->getPriceBlock();
3333
$fixturePrice = $this->getLowestConfigurablePrice();
3434

35-
if ($fixturePrice === null && $priceBlock->isVisible()) {
36-
return "Price block for '{$this->product->getName()}' product' is visible.";
35+
if ($fixturePrice === null) {
36+
if ($priceBlock->isVisible()) {
37+
return "Price block for '{$this->product->getName()}' product' is visible.";
38+
}
3739
} else {
3840
if (!$priceBlock->isVisible()) {
3941
return "Price block for '{$this->product->getName()}' product' is not visible.";

0 commit comments

Comments
 (0)