Make WordPress Core

Changeset 1300 in tests for trunk/tests/mail.php


Ignore:
Timestamp:
06/29/2013 10:31:15 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Re-implement the mock PHPMailer. props ocean90. fixes #24662.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/mail.php

    r909 r1300  
    44 * @group pluggable
    55 * @group mail
    6  * @ticket UT47
    76 */
    87class Tests_Mail extends WP_UnitTestCase {
     
    6665        $this->assertEquals($body, $GLOBALS['phpmailer']->mock_sent[0]['body']);
    6766        $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'boundary="----=_Part_4892_25692638.1192452070893"') > 0);
    68         $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'charset=""') > 0);
     67        $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'charset=') > 0);
    6968        unset( $_SERVER['SERVER_NAME'] );
    7069    }
Note: See TracChangeset for help on using the changeset viewer.