Skip to content
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

Remove deprecated from email verification #749

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Dec 10, 2019

Changes

  • Remove WP_Auth0_Email_Verification::init()
  • Remove WP_Auth0_Email_Verification::resend_verification_email() (merged with wp_auth0_ajax_resend_verification_email())
  • Remove WP_Auth0_Email_Verification::ajax_resend_email()

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.3

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp added this to the 4.0.0 milestone Dec 10, 2019
@joshcanhelp joshcanhelp force-pushed the remove-deprecated-from-email-verification branch from 398a2a1 to 1b5e260 Compare December 13, 2019 20:38
*
* @codeCoverageIgnore - Tested in TestEmailVerification::testResendVerificationEmail()
*/
function wp_auth0_ajax_resend_verification_email() {
Copy link
Contributor Author

@joshcanhelp joshcanhelp Dec 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved here from wp_auth0_ajax_resend_verification_email() below (same function) and merged functionality from WP_Auth0_Email_Verification::resend_verification_email()

* @runInSeparateProcess
*/
public function testResendVerificationEmail() {
public function testThatResendActionFailsWhenBadAjaxNonce() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just splitting tests out, not changing what's actually being tested. Also removes the mocked method in favor of a mocked HTTP response.

@joshcanhelp joshcanhelp marked this pull request as ready for review December 13, 2019 20:45
@joshcanhelp joshcanhelp requested a review from a team December 13, 2019 20:45
@joshcanhelp joshcanhelp merged commit 5134d4a into master Dec 13, 2019
@joshcanhelp joshcanhelp deleted the remove-deprecated-from-email-verification branch December 13, 2019 21:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants