-
Notifications
You must be signed in to change notification settings - Fork 3.2k
52988: Adds tests for get bookmark #1180
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
52988: Adds tests for get bookmark #1180
Conversation
peterwilsoncc
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.
As always, this is lovely.
As always, I've added a few minor questions and comments inline but nothing major.
Why? Performance => factory runs once instead for each test.
peterwilsoncc
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.
This looks good to me.
It looks like there was an accidental change to package-lock.json included in 3111683 but I'll preapprove as it's really the committers responsibility to check against these things.
9b4ff97 to
9fcb19b
Compare
Yup, I did. Doh. Way too easy to accidentally commit lock file. Luckily, it's straightforward for the core committer to skip over that file and only commit the test file. Thanks @peterwilsoncc! |
|
Committed as https://core.trac.wordpress.org/changeset/50789 |
Trac ticket: https://core.trac.wordpress.org/ticket/52988
Adds unit tests for
get_bookmark().The tests are broken up by the logic path through the if/elseif/else branches.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.