add: more tests
This commit is contained in:
parent
ce7f620984
commit
fcd76cf130
11 changed files with 232 additions and 15 deletions
|
@ -89,9 +89,9 @@ class CsvAgentCostTest extends TestCase
|
|||
// Ricordarsi che all'esecuzione della funzione, è gia stata dedotta la percentuale interna
|
||||
$expected = [
|
||||
'Agent A' => '02:00:00',
|
||||
'Agent A costo' => 619.21, // 120 minutes * 5.0
|
||||
'Agent A costo' => 618.67, // 120 minutes * 5.0
|
||||
'Agent B' => '03:00:00',
|
||||
'Agent B costo' => 928.8, // 180 minutes * 5.0
|
||||
'Agent B costo' => 928.0, // 180 minutes * 5.0
|
||||
];
|
||||
|
||||
$result = $this->csv_agent_cost->calculate_agents_cost($array, $agents_time, $minute_cost);
|
||||
|
@ -143,7 +143,7 @@ class CsvAgentCostTest extends TestCase
|
|||
|
||||
public function testSelectCorrectCostCalculatesCostCorrectly()
|
||||
{
|
||||
// percentuale dedotta impostata nel setup
|
||||
// percentuale dedotta impostata nel setup di questa classe
|
||||
// Costo orario per cliente con issue high, 75.5€/h
|
||||
$array = [
|
||||
'Progetto' => 'Progetto Test',
|
||||
|
@ -172,7 +172,7 @@ class CsvAgentCostTest extends TestCase
|
|||
$expected_result = $array;
|
||||
$expected_result = array_merge($array, [
|
||||
'agentTest' => '00:10:00',
|
||||
'agentTest costo' => 11.4
|
||||
'agentTest costo' => 11.34
|
||||
]);
|
||||
|
||||
// Call the method being tested
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue