-
Notifications
You must be signed in to change notification settings - Fork 117
Users connector class test implemented. #1151
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
Conversation
1273fca to
41f23f6
Compare
dero
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.
@kidunot89 This looks really good, just a couple comments here. Thanks!
| * Unregister all context hooks | ||
| */ | ||
| public function unregister() { | ||
| if ( ! $this->is_registered ) { |
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.
@kidunot89 Can you give me more context for this change? Why is it being removed?
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.
@dero Because I noticed that somewhere between tests the connectors where ending in a state where the callback hooks were registered and the is_registered flag was false but the action were still registered and somehow prevent the mocked connector class actions from getting the data on logs catching deletions. This has actually been happening across multiple connector test and is also the cause for hold up on the last test of the comment connector test case
fd6f11a to
9f97ac6
Compare
9f97ac6 to
f940b94
Compare
f940b94 to
8c35864
Compare
8c35864 to
4fa2253
Compare
4fa2253 to
96d03b9
Compare
Partially fixes #1093
Potentially fixes #946
Summary checklist
clear_auth_cookiecallback test implemented and passing.delete_usercallback test implemented and passing.deleted_usercallback test implemented and passing.password_resetcallback test implemented and passing.profile_updatecallback test implemented and passing.retrieve_passwordcallback test implemented and passing.set_current_usercallback test implemented and passing.set_logged_in_cookiecallback test implemented and passing.set_user_rolecallback test implemented and passing.user_registercallback test implemented and passing.