Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.6, 2.5.2, 2.6
-
Component/s: Unit tests
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
Fixed Branches:MOODLE_24_STABLE, MOODLE_25_STABLE
-
Pull from Repository:
-
Pull Master Branch:w41_
MDL-42054_m26_phpmailertesting_i -
Pull Master Diff URL:
-
Story Points:2
-
Sprint:BACKEND Sprint 5
Description
Yuliya Bozhko added a comment - 29/Sep/13 10:50 PM
Looking through the comments history, I think in moodle_phpmailer.php it should check not redirected messages, but redirected emails...
if (PHPUNIT_TEST && phpunit_util::is_redirecting_phpmailer()) {
Otherwise, if I redirect emails only, my message sink is always empty. Discovered while trying to write tests for MDL-41956.
Attachments
Issue Links
- blocks
-
MDL-41956 Accept attachments in message_send() in email message provider
-
- Closed
-
- Discovered while testing
-
MDL-42224 clean up messaging and email redirection in unit tests
-
- Closed
-
- is a regression caused by
-
MDL-41196 Add phpmailer message sink to allow unit testing of email_to_user
-
- Closed
-
- is blocked by
-
MDL-41197 core_text::convert produces notices when experiencing invalid utf8 params or char not in target encoding
-
- Closed
-