Skip to content

Commit

Permalink
Test price at 0 against resolvePrice()
Browse files Browse the repository at this point in the history
  • Loading branch information
torreytsui authored and mage2pratik committed Jul 14, 2018
1 parent f500af3 commit 8110f5f
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,28 @@ public function resolvePriceDataProvider()
],
$expectedPrice = 5.00,
],
'Single variants at price null (null), should return 0.00 (float)' => [
$variantPrices = [
null,
],
$expectedPrice = 0.00,
],
'Multiple variants at price 0, 10, 20, should return 0.00 (float)' => [
$variantPrices = [
0,
10,
20,
],
$expectedPrice = 0.00,
],
'Multiple variants at price 10, 0, 20, should return 0.00 (float)' => [
$variantPrices = [
10,
0,
20,
],
$expectedPrice = 0.00,
],
];
}
}

0 comments on commit 8110f5f

Please sign in to comment.