-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#11572] Notification Feature - Notification Logic Tests #11696
[#11572] Notification Feature - Notification Logic Tests #11696
Conversation
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.
Some comments which we can discuss on!
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.
Just a few comments. Overall great effort!
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.
Good coverage overall!
Other than what has already been pointed out, just to add some cosmetic changes:
* Increase usage of typical databundle and reduce entity creation during test * Improve tests for getActiveNotificationsForTargetUser
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.
LGTM.
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.
LGTM, nice work!
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.
LGTM!
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.
LGTM
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.
Apart from the comment by @fsgmhoward, LGTM.
* Add tests to NotificationsLogic * Refactor notification logic test * Increase usage of typical databundle and reduce entity creation during test * Improve tests for getActiveNotificationsForTargetUser * Remove check for presence in database
* Add tests to NotificationsLogic * Refactor notification logic test * Increase usage of typical databundle and reduce entity creation during test * Improve tests for getActiveNotificationsForTargetUser * Remove check for presence in database
* Add tests to NotificationsLogic * Refactor notification logic test * Increase usage of typical databundle and reduce entity creation during test * Improve tests for getActiveNotificationsForTargetUser * Remove check for presence in database
* Add tests to NotificationsLogic * Refactor notification logic test * Increase usage of typical databundle and reduce entity creation during test * Improve tests for getActiveNotificationsForTargetUser * Remove check for presence in database
Part of #11572
Outline of Solution