WordPress.org

Make WordPress Core

Changeset 321 in tests


Ignore:
Timestamp:
12/15/10 12:22:12 (3 years ago)
Author:
westi
Message:

Temporarily set the SERVER_NAME as wp_mail relies on it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_pluggable.php

    r302 r321  
    8888         
    8989        unset($GLOBALS['phpmailer']->mock_sent); 
     90        $_SERVER['SERVER_NAME'] = 'example.com'; 
    9091        wp_mail($to, $subject, $body, $headers); 
    9192         
     
    9495        $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'boundary="----=_Part_4892_25692638.1192452070893"') > 0); 
    9596        $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'charset=""') > 0); 
     97        unset( $_SERVER['SERVER_NAME'] ); 
    9698    } 
    9799     
Note: See TracChangeset for help on using the changeset viewer.