You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpunit/functional/OLATest.php
+26-23Lines changed: 26 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,6 @@
41
41
42
42
class OLATest extends DbTestCase
43
43
{
44
-
45
44
// default delay for tto & ttr ola
46
45
// see @\LevelAgreement::getDefinitionTimeValues() for available unit values
47
46
constOLA_TTO_DELAY = [90, 'minute'];
@@ -371,7 +370,6 @@ private function getValidTicketData(): array
371
370
// 'tickettemplates_id' => 0,
372
371
// 'externalid' => null,
373
372
];
374
-
375
373
}
376
374
377
375
/**
@@ -388,29 +386,31 @@ private function createOLA(array $data = [], int $ola_type = \SLM::TTO, ?\Group
388
386
$slm = $slm ?? $this->createSLM();
389
387
$group = $group ?? $this->createGroup();
390
388
391
-
[$amount, $unit] = match($ola_type) {
389
+
[$amount, $unit] = match($ola_type) {
392
390
SLM::TTO => self::OLA_TTO_DELAY,
393
391
SLM::TTR => self::OLA_TTR_DELAY,
394
392
};
395
393
396
-
$ola = $this->createItem(Ola::class,
394
+
$ola = $this->createItem(
395
+
Ola::class,
397
396
$data + [
398
-
// 'id' => 0,
397
+
// 'id' => 0,
399
398
'name' => 'OLA ' . time(),
400
-
// 'entities_id' => 0,
399
+
// 'entities_id' => 0,
401
400
'is_recursive' => 1, // @todoseb voir avec quelqu'un le fonctionnement de l'entité 0 et de la récursivité. car la requete Item_Ola::getListForItem() dans \Ticket::getAssociatedOlas attend soit de la récursivité, soit une entité != 0
0 commit comments