Changeset 33124 for trunk/tests/phpunit/tests/mail.php
- Timestamp:
- 07/08/2015 05:15:02 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/mail.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/mail.php
r32839 r33124 8 8 parent::setUp(); 9 9 unset( $GLOBALS['phpmailer']->mock_sent ); 10 } 11 12 /** 13 * Send a mail with a 1000 char long line. 14 * 15 * `PHPMailer::createBody()` will set `$this->Encoding = 'quoted-printable'` (away from it's default of 8bit) 16 * when it encounters a line longer than 999 characters. But PHPMailer doesn't clean up after itself / presets 17 * all variables, which means that following tests would fail. To solve this issue we set `$this->Encoding` 18 * back to 8bit in `MockPHPMailer::preSend`. 19 * 20 */ 21 function test_wp_mail_break_it() { 22 $content = str_repeat( 'A', 1000 ); 23 wp_mail( "admin@example.org", 'Looong line testing', $content); 10 24 } 11 25
Note: See TracChangeset
for help on using the changeset viewer.