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
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,33 @@
101
101
* - ttr waiting time is incremented while the ticket status is WAITING : @see self::testOlaTTRWaitingTimeIsIncrementedWhileTicketStatusIsWaiting()
102
102
* + @todo tests avec autres groupes
103
103
*
104
+
* - ticket is late if : (business logic extracted from CommonITILObject::generateSLAOLAComputation())
105
+
* tto :
106
+
* - ola due time is not null (0)
107
+
* - and ticket status is not WAITING (1)
108
+
* - and one of the following is true :
109
+
* - takeintoaccountdate is not null & > due_time (2.1))
110
+
* - takeintoaccountdate is null & target resolution delay (time elapsed since ticket creation without pauses) > time elapsed since ticket start start (2.2) // @todoseb need rewrite
111
+
* - takeintoaccountdate is null & due time is passed (2.3)
112
+
* - ttr :
113
+
* - due time is not null
114
+
* - ticket status is not WAITING
115
+
* - ticket solved_date > due_time
116
+
* - or solved_date is null & due_time is passed
117
+
* // ---
118
+
*
119
+
* - tto : (takeintoaccountdate is replaced by end_time)
120
+
* - end_time is defined and > due_time - @see self::testOlaTtoIsLateWhenEndTimeIsAfterDueTime()
121
+
* - end_time is not defined & due_time is passed - @see self::testOlaTtoIsLateWhenDueTimeIsPassed()
122
+
* - ticket status is not WAITING (1): @see self::testOlaTtoIsLateWhenTicketStatusIsNotWaiting() // @todoseb
123
+
* and that's all.
124
+
125
+
* // ----
126
+
* - is never late if ticket is solved or closed : @see self::testOlaTtoIsNotLateWhenTicketIsSolvedOrClosed()
127
+
* - ttr : @todoseb implémenter tests manquants
128
+
*
129
+
* // @todoseb test si is_late change quand ticket devient waiting
130
+
*
104
131
* - when completion is done, the associated group is removed from ticket assignees : not implemented, seems not relevant atm
105
132
*/
106
133
@@ -811,6 +838,32 @@ public function testOlaTTRWaitingTimeIsIncrementedWhileTicketStatusIsWaiting()
811
838
$this->assertEquals(20 * 60, $ola_data['waiting_time'], 'Waiting time should be incremented by 20 minutes after 20 min in WAITING status for an OLA TTR');
0 commit comments