Skip to content

Commit

Permalink
HP-2250/Fix_behat_test_at_billing-mrdp (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: Drahma <[email protected]>
  • Loading branch information
ValeriyShnurovoy and Drahma authored Dec 5, 2024
1 parent 54f3d75 commit 9f1c3f1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/behat/bootstrap/BillingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+)/
*/
Expand Down

0 comments on commit 9f1c3f1

Please sign in to comment.