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 for uF group one bug #15381

Merged
merged 1 commit into from
Oct 7, 2019
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Unit test for #15380

@civibot
Copy link

civibot bot commented Oct 3, 2019

(Standard links)

@civibot civibot bot added the 5.18 label Oct 3, 2019
@totten
Copy link
Member

totten commented Oct 3, 2019

Note that you'll want to rebase - I did some additional fixes on the original PR.

@eileenmcnaughton
Copy link
Contributor Author

I've updated this against master & added checks that the titles for 2 & 3 are correct

Comment on lines +97 to +103
$profileID = $this->ids['UFGroup']['dummy'];
CRM_Core_DAO::executeQuery('UPDATE civicrm_uf_group SET id = 1 WHERE id = 900');
CRM_Core_DAO::executeQuery("UPDATE civicrm_uf_join SET uf_group_id = 1 WHERE uf_group_id = $profileID");
CRM_Core_DAO::executeQuery("UPDATE civicrm_uf_field SET uf_group_id = 1 WHERE uf_group_id = $profileID");
Copy link
Contributor

Choose a reason for hiding this comment

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

@eileenmcnaughton maybe put a if (!empty($this->ids['UFGroup'])) around these lines?

@mattwire mattwire merged commit 622c8df into civicrm:master Oct 7, 2019
@eileenmcnaughton eileenmcnaughton deleted the w_test branch January 7, 2020 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants