-
Notifications
You must be signed in to change notification settings - Fork 158
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
Increase TOTP coverage #469
Conversation
I'll take a closer look tomorrow at the |
The PHP8 linter issues are fixed in #466. |
These functions are either untestable in a pure unit test, or aren't worth testing. They're better suited to manual testing and e2e tests.
dc4a656
to
57506c3
Compare
I removed the commits related to |
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.
Looks great!
Great, should I go ahead and merge it then? Or is there anything else we need to do first? |
Yes, please merge it in! |
This adds some tests to fill small gaps in coverage, and marks some functions as ignored because they're not testable in a unit test, or aren't worth testing. This increases the coverage of
class-two-factor-totp.php
to92%
, making it obvious that it is well-tested.To aid in writing tests, this also adds
phpunit-watcher
, similar to Gutenberg, WordCamp.org, and some other WordPress repos.See #468