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

NFC cleanup in test class #25524

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

No description provided.

@civibot
Copy link

civibot bot commented Feb 8, 2023

(Standard links)

@civibot civibot bot added the master label Feb 8, 2023
@@ -518,7 +516,7 @@ public function testDupesByParams() {
* Locks in expected params
*
*/
public function hook_civicrm_findDuplicates($dedupeParams, &$dedupeResults, $contextParams) {
public function hook_civicrm_findDuplicates($dedupeParams, $dedupeResults, $contextParams) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't match the dev docs, and the return at the bottom. Are the docs wrong?

Otherwise everything in the PR looks good.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think the docs are right and the test is half-right. The signature was correct, but the return is wrong, it just doesn't come up because the hook implementation never changes the value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@demeritcowboy yeah - I normally remove the pass by ref in extension hooks too if they don't leverage it - just makes it all clearer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@demeritcowboy I didn't want this tidy up to be blocking on the actual fix - #25527 - so I reverted it back & added php doc block to ignore it.

@demeritcowboy
Copy link
Contributor

unrelated style-check fail which isn't really a style fail.

I still think the return at the bottom shouldn't be there but ok.

@eileenmcnaughton eileenmcnaughton deleted the finder_test branch February 9, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants