From 9f1c3f120049ef60a6fb2c9df2482860d8eee213 Mon Sep 17 00:00:00 2001 From: Valeriy Shnurovoy <_val@rambler.ru> Date: Thu, 5 Dec 2024 14:24:06 +0200 Subject: [PATCH] HP-2250/Fix_behat_test_at_billing-mrdp (#92) Co-authored-by: Drahma --- tests/behat/bootstrap/BillingContext.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/behat/bootstrap/BillingContext.php b/tests/behat/bootstrap/BillingContext.php index 38711a9a..a94600d3 100644 --- a/tests/behat/bootstrap/BillingContext.php +++ b/tests/behat/bootstrap/BillingContext.php @@ -150,6 +150,22 @@ public function progressivePrice($type, $price, $currency, $unit, $sign, $quanti } } + /** + * @Given /^build progressive price/ + */ + public function buildProgressivePrices() + { + foreach ($this->progressivePrice as $type => $price) { + $this->fullPrice([ + 'type' => $type, + 'price' => 0, + 'currency' => $price['currency'], + 'unit' => $price['unit'], + 'data' => ['thresholds' => $price['thresholds'], 'class' => 'ProgressivePrice'], + ]); + } + } + /** * @Given /^remove and recreate tariff plan (\S+)/ */