-
Notifications
You must be signed in to change notification settings - Fork 35
Fix/skip rules param #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 10.0/bugfixes
Are you sure you want to change the base?
Fix/skip rules param #425
Conversation
Rom1-B
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit tests
6934fbf to
0af40d0
Compare
0af40d0 to
fbff91b
Compare
fbff91b to
322b69a
Compare
…rule execution during ticket escalation
322b69a to
212061d
Compare
tests/Units/TicketTest.php
Outdated
| 'entities_id' => 0, | ||
| 'is_recursive' => 1, | ||
| ]); | ||
| $group_tech_id = $group_tech->getID(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is never used no ?
| // Observer group may or may not be added depending on the escalation path and GLPI internals. | ||
| // If RuleTicket is executed, observer group must be added exactly once | ||
|
|
||
| $observer_count = count($group_ticket->find([ | ||
| 'tickets_id' => $ticket_id, | ||
| 'groups_id' => $group_observer_id, | ||
| 'type' => \CommonITILActor::OBSERVER | ||
| ])); | ||
|
|
||
| $this->assertContains( | ||
| $observer_count, | ||
| [0, 1], | ||
| 'Observer group count must be 0 or 1' | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is either always 0 or always 1, but it should not vary in an CI test.
Checklist before requesting a review
Please delete options that are not relevant.
Description
Screenshots (if appropriate):