Skip to content

Commit 9f1c3f1

Browse files
ValeriyShnurovoyDrahma
andauthored
HP-2250/Fix_behat_test_at_billing-mrdp (#92)
Co-authored-by: Drahma <[email protected]>
1 parent 54f3d75 commit 9f1c3f1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/behat/bootstrap/BillingContext.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,22 @@ public function progressivePrice($type, $price, $currency, $unit, $sign, $quanti
150150
}
151151
}
152152

153+
/**
154+
* @Given /^build progressive price/
155+
*/
156+
public function buildProgressivePrices()
157+
{
158+
foreach ($this->progressivePrice as $type => $price) {
159+
$this->fullPrice([
160+
'type' => $type,
161+
'price' => 0,
162+
'currency' => $price['currency'],
163+
'unit' => $price['unit'],
164+
'data' => ['thresholds' => $price['thresholds'], 'class' => 'ProgressivePrice'],
165+
]);
166+
}
167+
}
168+
153169
/**
154170
* @Given /^remove and recreate tariff plan (\S+)/
155171
*/

0 commit comments

Comments
 (0)