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 processing multipart-related emails in fetch_bounces #11378

Merged
merged 2 commits into from
Dec 7, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

I was trying to replicate an error but didn't manage. Submitting test

*
* @param string $dir
*/
protected function rrmdir($dir) {
Copy link
Member

Choose a reason for hiding this comment

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

There's a utility function CRM_Utils_File::cleanDir($dir, TRUE, FALSE) which should be pretty similar. I'm not sure if there's some intentional/significant difference here -- but, FWIW, I've used it in other tests (like CRM_Extension_Manager_ModuleTest).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@totten yep - that function worked

@totten
Copy link
Member

totten commented Dec 6, 2017

Generally, a big +1 for the idea of adding example email messages to the test suite. This seems pretty important for email-based interactions.

I was trying to replicate an error but didn't manage. Submitting test
@totten
Copy link
Member

totten commented Dec 6, 2017

Looks good+sensible.

I pushed a small tweak to the branch. Merge on pass.

@totten totten merged commit 64e6ce2 into civicrm:master Dec 7, 2017
@totten totten deleted the test branch December 7, 2017 01:19
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
Add test for processing multipart-related emails in fetch_bounces
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