add: more tests

This commit is contained in:
Michael 2024-08-14 13:52:30 +02:00
parent fcd76cf130
commit 3d08b14f11
6 changed files with 154 additions and 36 deletions

View file

@ -8,6 +8,8 @@ use RuntimeException;
class CsvAgentCost
{
public $agent_cost_calc;
public function __construct()
{
$this->internal_percentage_to_deduct = (float) getenv('PRICE_INTERNAL_PERCENTAGE_TO_DEDUCT', null);

View file

@ -6,13 +6,11 @@ use App\Http\Controllers\CsvController\CsvCostCalc\CsvCostCalc;
class CsvDataHandling
{
private $calculate_agent_cost;
private $csv_cost_calc;
public function __construct()
{
$this->calculate_agent_cost = env('GITEA_CALCULATE_AGENT_COST');
$this->csv_cost_calc = new CsvCostCalc();
}
function handle_agent_issue($agents_issue_time, $time)