stable

Clone or download

Read-only

chore: extract strategy of status change only

Note: there was no tests for this scenario, I decided to write them at the strategy level. For strategy that are already covered by RecipientManager tests, I just keep them here with a @covers annotation. Part of: story #10469 choose if I receive a notification when I create/update something Change-Id: I3f5390134bc079728d69e7e2ad3c9da4d171834d

Modified Files

Name
M plugins/tracker/include/Tracker/Notifications/RecipientsManager.php +9 −32 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/RemoveRecipient/ArtifactStatusChangeDetector.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/RemoveRecipient/ArtifactStatusChangeDetectorImpl.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/RemoveRecipient/RemoveRecipientWhenTheyAreInStatusUpdateOnlyMode.php +65 −0 Go to diff View file
M plugins/tracker/include/Tracker/Notifications/Settings/UserNotificationSettingsRetriever.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/UserNotificationOnlyStatusChange.php +27 −0 Go to diff View file
M plugins/tracker/include/Tracker/Notifications/UserNotificationOnlyStatusChangeDAO.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Notifications/RecipientsManagerTest.php +3 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Notifications/RemoveRecipient/RemoveRecipientWhenTheyAreInStatusUpdateOnlyModeTest.php +113 −0 Go to diff View file