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

Add test to UpdateSubscription form #21282

Merged
merged 1 commit into from
Aug 29, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Add test to UpdateSubscription form

Before

Nada

After

and out of nothing....

Technical Details

Test only at this stage

Comments

@civibot
Copy link

civibot bot commented Aug 27, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 can I get a merge on this (& there is one other easy one I'm just hunting for)

@@ -323,8 +323,7 @@ public function postProcess() {
}
}

$session = CRM_Core_Session::singleton();
$userID = $session->get('userID');
$userID = CRM_Core_Session::singleton()->get('userID');
Copy link
Contributor

Choose a reason for hiding this comment

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

@eileenmcnaughton If updating this line it should be changed to:

Suggested change
$userID = CRM_Core_Session::singleton()->get('userID');
$userID = CRM_Core_Session::getLoggedInContactID();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mattwire yeah - I won't add that to this PR thought because - the point of the PR is to add the test. I fixed 2 super obvious things in the class while I was doing it but I don't want to scope creep into cleaning up the form class in this pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pulled the change out

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.

3 participants