-
Notifications
You must be signed in to change notification settings - Fork 116
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
Users connector class test implemented. #1151
Conversation
1273fca
to
41f23f6
Compare
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!
classes/class-connector.php
Outdated
@@ -91,10 +91,6 @@ public function register() { | |||
* 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_cookie
callback test implemented and passing.delete_user
callback test implemented and passing.deleted_user
callback test implemented and passing.password_reset
callback test implemented and passing.profile_update
callback test implemented and passing.retrieve_password
callback test implemented and passing.set_current_user
callback test implemented and passing.set_logged_in_cookie
callback test implemented and passing.set_user_role
callback test implemented and passing.user_register
callback test implemented and passing.