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

Move relationship return properties to the processor class to fix leakage related test fail #12521

Merged
merged 1 commit into from
Jul 24, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jul 20, 2018

Overview

Code rejigging to support increased testing

Before

Part of im_provider test didn't work except in isolation due to leakage

After

Full test enabled & passes

Technical Details

Now we have the ExportProcessor class moving properties that should be OO onto it solves a catalogue of woes

Comments

The newly enabled test covers this code change very thoroughly

@civibot
Copy link

civibot bot commented Jul 20, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

@eileenmcnaughton syntax error

PHP Parse error:  syntax error, unexpected '&&' (T_BOOLEAN_AND) in CRM/Export/BAO/Export.php on line 274
Errors parsing CRM/Export/BAO/Export.php

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 ug - just rebased - 2 secs let me try again

@@ -611,9 +611,6 @@ public function testExportIMData() {
}
}

// early return for now until we solve a leakage issue.
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing this enables a lot of coverage

@monishdeb
Copy link
Member

Tested on my local, works fine. Did export with various use-cases, didn't encountered any issue. Tests passed. Happy with the patch, merging now

@monishdeb monishdeb merged commit fac55f2 into civicrm:master Jul 24, 2018
@eileenmcnaughton eileenmcnaughton deleted the fix_im_export_test branch July 24, 2018 19:49
@eileenmcnaughton
Copy link
Contributor Author

thanks! @monishdeb

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.

4 participants