-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Conversation
(Standard links)
|
3cca38d
to
0d7261f
Compare
@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'); |
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.
@eileenmcnaughton If updating this line it should be changed to:
$userID = CRM_Core_Session::singleton()->get('userID'); | |
$userID = CRM_Core_Session::getLoggedInContactID(); |
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.
@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
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.
I pulled the change out
0d7261f
to
91b773b
Compare
Overview
Add test to UpdateSubscription form
Before
Nada
After
and out of nothing....
Technical Details
Test only at this stage
Comments