-
Notifications
You must be signed in to change notification settings - Fork 30
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
Stub _n_noop, _nx_noop, translate_nooped_plural #131
Conversation
Stub for those were missing in stubTranslationFunctions() See #51
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.
Verified against the WP functions and LGTM. Useful addition IMO.
I do see a risk with translate_nooped_plural
potentially showing "undefined array index" notices, but I'm not concerned about that, as that would indicate a code error anyway, so if tests error out on that, all the better!
(Can I merge it or will you merge it yourself ?)
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.
Argh... just realized tests are missing.... sorry about that. Could you add some ?
The FunctionsTest::testStubsTranslationsReturn()
method seems the most appropriate place.
Closes Brain-WP#51, completes Brain-WP#131
I added PR #133 which adds tests into this branch, to unblock this PR. |
Thanks, @jrfnl for the review. I think this is good to go now. |
Stub for
_n_noop()
,_nx_noop()
, andtranslate_nooped_plural()
were missing instubTranslationFunctions()
See #51