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

Extend Export test to cover altering sqlColumns and headerRows via ho… #15312

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

seamuslee001
Copy link
Contributor

…ok_civicrm_export

Overview

Extend export unit test to cover altering sqlColumns and headerRows via the hook_civicrm_export

Before

No test based on the hook

After

Test based on the hook

ping @eileenmcnaughton @MegaphoneJon

@civibot
Copy link

civibot bot commented Sep 16, 2019

(Standard links)

@civibot civibot bot added the master label Sep 16, 2019
*
*/
public function confirmHookWasCalled(&$exportTempTable, &$headerRows, &$sqlColumns, $exportMode, $componentTable, $ids) {
$sqlColumns['display'] = 'dipslay varchar(255)';
Copy link
Contributor

Choose a reason for hiding this comment

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

@seamuslee001 Is the dipslay typo on purpose - shouldn't that make something fail? Ignore me if I'm just misunderstanding this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm i don't think it was meant to fail as i think the header rows does the trick and i have essentially compensated in L145 but i will fix this up anyway

@eileenmcnaughton eileenmcnaughton merged commit eab346e into civicrm:master Oct 4, 2019
@eileenmcnaughton eileenmcnaughton deleted the export_hook_test branch October 4, 2019 04:20
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.

3 participants